chiark / gitweb /
journalctl: add with-unit mode
authorLuca Boccassi <bluca@debian.org>
Tue, 22 May 2018 11:22:00 +0000 (12:22 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit8b3736bf3f3980ee201a7a420136b24bd1c1fc0d
tree256cd79f1aa98a1099c7e0cf537a0724c5bb7bf2
parent0dab96c1afd1778dd9f1a2c7217ecdfe6dd95614
journalctl: add with-unit mode

When dealing with a large number of template instances, for example
when launching daemons per VRF, it is hard for operators to correlate
log lines to arguments.
Add a new with-unit mode which, if available, prefixes unit and user
unit names when displaying its log messages instead of the syslog
identifier. It will also use the full timestamp with timezones, like
the short-full mode.
src/shared/output-mode.c
src/shared/output-mode.h