diff options
author | Karel Zak | 2015-10-01 14:48:15 +0200 |
---|---|---|
committer | Karel Zak | 2015-10-01 14:48:15 +0200 |
commit | 4299ed1ce2f088cced8a5b9420811ddce27eae8e (patch) | |
tree | c53451f34d69a575c5754fc9f0a4d02568271884 /misc-utils/Makemodule.am | |
parent | lib/strv: add strv_extendv() (diff) | |
download | kernel-qcow2-util-linux-4299ed1ce2f088cced8a5b9420811ddce27eae8e.tar.gz kernel-qcow2-util-linux-4299ed1ce2f088cced8a5b9420811ddce27eae8e.tar.xz kernel-qcow2-util-linux-4299ed1ce2f088cced8a5b9420811ddce27eae8e.zip |
logger: add --sd-id and -sd-param
This patch add support for RFC 5424 structured data elements. For
example:
logger --rfc5424 --sd-id zoo@123 \
--sd-param tiger=\"hungry\" \
--sd-param zebra=\"running\" \
--sd-id manager@123 \
--sd-param onMeeting=\"yes\" \
"this is message"
produces:
<13>1 2015-10-01T14:07:59.168662+02:00 ws kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="218616"][zoo@123 tiger="hungry" zebra="running"][manager@123 onMeeting="yes"] this is message
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/Makemodule.am')
-rw-r--r-- | misc-utils/Makemodule.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am index e80161172..e017952a8 100644 --- a/misc-utils/Makemodule.am +++ b/misc-utils/Makemodule.am @@ -21,7 +21,7 @@ endif # BUILD_CAL if BUILD_LOGGER usrbin_exec_PROGRAMS += logger dist_man_MANS += misc-utils/logger.1 -logger_SOURCES = misc-utils/logger.c lib/strutils.c +logger_SOURCES = misc-utils/logger.c lib/strutils.c lib/strv.c if HAVE_SYSTEMD logger_LDADD = $(SYSTEMD_LIBS) $(SYSTEMD_DAEMON_LIBS) $(SYSTEMD_JOURNAL_LIBS) logger_CFLAGS = $(SYSTEMD_CFLAGS) $(SYSTEMD_DAEMON_CFLAGS) $(SYSTEMD_JOURNAL_CFLAGS) |