chiark / gitweb /
journal: new logging macros to include UNIT=
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 5 Jan 2013 16:59:46 +0000 (11:59 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Jan 2013 18:52:48 +0000 (13:52 -0500)
commitfdf9f9bbe4dc3281bc8799e2a1f8709776c8cad8
tree992b2aafc78dcb2954a11f47a7c55a72419f3edb
parentd0aa9ce51915f6f7448adfeb4be0f46cc1356124
journal: new logging macros to include UNIT=

Adding UNIT= to log lines allows them to be shown
in 'systemctl status' output, etc.

A new set of macros and functions is added. This allows for less
verbose notation than using log_struct() explicitly.

The set of logging functions is expanded to take a pair of arguments
(e.g. "UNIT=" and the RHS) which add an extra line to the structured
log entry. This can be used to add macros which add a different
identifier later on.
src/core/unit.h
src/shared/log.c
src/shared/log.h