]> git.puffer.fish Git - matthieu/frr.git/commit
tools: add logfmt option for frr-reload.py
authorGiovanni Tataranni <g.tataranni@gmail.com>
Thu, 19 Sep 2024 13:46:02 +0000 (15:46 +0200)
committerGiovanni Tataranni <g.tataranni@gmail.com>
Mon, 17 Feb 2025 16:33:28 +0000 (17:33 +0100)
commit44a6e0dfedf97d44d354210ab1f483548580c440
tree7d382a01c3f7487647008283ce50a60c4a786d38
parenta09e949e4876faa6ddcf47e78c7f49ec3befda1a
tools: add logfmt option for frr-reload.py

Add the option of printing logs in logfmt format.

Additional machine readable information can be printed via the `extra`
argument.
Example:
```python
log.debug("exit context"), extra={"line": line, "ctx_keys": ctx_keys})

log.error(f"Failed to execute command {' '.join(cmd)}", extra={"cmd": cmd})
```

Signed-off-by: Giovanni Tataranni <g.tataranni@gmail.com>
tools/frr-reload.py