]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: improve logger --journald man page example
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 3 Sep 2015 11:41:19 +0000 (13:41 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Sep 2015 06:54:15 +0000 (08:54 +0200)
commitb632f55c29cf516af266c92304844adb98ef5fbd
treee6b0d6e229014a1f3f2fc943b663681f84988c35
parente8c000348153f7e5e3ead8bad8f89ec122f6fdb5
logger: improve logger --journald man page example

The example use of logger --journald in the man page has a couple of flaws:
 - It's missing a "MESSAGE=" field. This is supposed to be the primary
   human readable text. Without it the log entry is invisible in a
   plain "journalctl" output.
 - The MESSAGE_ID is supposed to be a 128-bit hexadecimal string that
   globally uniquely identifies the message type.
   One can generate such an id with "journalctl --new-id".

This patches fixes the above and also changes the example to use a
here-document instead of printf. In my opinion it makes the expected
multi-line data format more obvious.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
misc-utils/logger.1