summaryrefslogtreecommitdiff
path: root/lib/zlog_live.c
AgeCommit message (Collapse)Author
2022-03-07lib, vtysh: report lost messages on live logDavid Lamparter
The vtysh live logs don't try to buffer messages when vtysh isn't reading them fast enough. Either the kernel has space and can accept messages without delay, or it doesn't and we continue on. While this is intentional (otherwise slow vtysh could block a routing daemon), at least give the user an indication if messages were dropped. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-07lib: add `monitor:<fd>` command line log targetDavid Lamparter
This provides direct raw log output with full metadata directly at startup regardless of configuration details. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-07lib: add a few more bits to live log headerDavid Lamparter
... and add some comments explaining the individual fields. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-07lib: make live log sockets non-blockingDavid Lamparter
This was the intent here to begin with, not sure where I managed to forget this along the way... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-07lib: fix live log fields for crashlogDavid Lamparter
The timestamps used for the live log are wallclock, not monotonic. Also some fields were left uninitialized. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-28lib: implement `terminal monitor` for vtyshDavid Lamparter
Adds a new logging target that sends log messages to vtysh. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>