From 1fc5c174f1921a240b6fd0cd89bce62b8260b375 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 31 Jul 2022 10:41:25 +0200 Subject: [PATCH] logger: update usage text with new options Signed-off-by: Joachim Wiberg --- src/logger.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/logger.c b/src/logger.c index cc564b9..49125f6 100644 --- a/src/logger.c +++ b/src/logger.c @@ -229,9 +229,13 @@ static int usage(int code) "\n" "Write MESSAGE (or line-by-line stdin) to syslog, or file (with logrotate).\n" "\n" + " -4 Prefer IPv4 address when sending remote, see -h\n" + " -6 Prefer IPv6 address when sending remote, see -h\n" + " -b Use RFC3164 (BSD) style format, default: RFC5424\n" " -c Log to console (LOG_CONS) on failure\n" " -d SD Log SD as RFC5424 style 'structured data' in message\n" " -f FILE Log file to write messages to, instead of syslog daemon\n" + " -h HOST Send (UDP) message to this remote syslog server (IP or DNS name)\n" " -i Log process ID of the logger process with each line (LOG_PID)\n" #ifdef __linux__ " -k Log to kernel /dev/kmsg if /dev/log doesn't exist yet\n" @@ -239,6 +243,7 @@ static int usage(int code) " -m MSGID Log message using this RFC5424 style MSGID\n" " -n Open log file immediately (LOG_NDELAY)\n" " -p PRIO Log message priority (numeric or facility.severity pair)\n" + " -P PORT Use PORT (or named UDP service) for remote server, default: syslog\n" " -r S[:R] Enable log file rotation, default: 200 kB \e[4ms\e[0mize, 5 \e[4mr\e[0motations\n" " -s Log to stderr as well as the system log\n" " -t TAG Log using the specified tag (defaults to user name)\n"