summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.1
diff options
context:
space:
mode:
authorKarel Zak2019-01-23 11:41:43 +0100
committerKarel Zak2019-01-23 11:41:43 +0100
commit1c4a2600cc5dc44e6d517ca9fa6f3d7b1ef9d481 (patch)
tree42b27b3fed6f9933b8a2bb721acaed14eef59d1b /misc-utils/logger.1
parentlibblkid: remove dependence on libuuid (diff)
downloadkernel-qcow2-util-linux-1c4a2600cc5dc44e6d517ca9fa6f3d7b1ef9d481.tar.gz
kernel-qcow2-util-linux-1c4a2600cc5dc44e6d517ca9fa6f3d7b1ef9d481.tar.xz
kernel-qcow2-util-linux-1c4a2600cc5dc44e6d517ca9fa6f3d7b1ef9d481.zip
logger: concatenate multiple lines of MESSAGE into a single field.
this is deemed a useful special case since journalctl will only show either the first or last element of the message array if the field appears multiple times. Based on patch from: Kjetil Torgrim Homme <kjetil.homme@redpill-linpro.com> https://github.com/karelzak/util-linux/pull/743 Addresses: https://github.com/karelzak/util-linux/issues/742 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/logger.1')
-rw-r--r--misc-utils/logger.14
1 files changed, 4 insertions, 0 deletions
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
index bf11c411b..37a87e5c9 100644
--- a/misc-utils/logger.1
+++ b/misc-utils/logger.1
@@ -108,6 +108,10 @@ execution of
will display MESSAGE field. Use
.B journalctl \-\-output json-pretty
to see rest of the fields.
+.sp
+To include newlines in MESSAGE, specify MESSAGE several times. This is
+handled as a special case, other fields will be stored as an array in
+the journal if they appear multiple times.
.TP
.BR \-\-msgid " \fImsgid
Sets the RFC5424 MSGID field. Note that the space character is not permitted