summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.1
diff options
context:
space:
mode:
authorRainer Gerhards2015-03-07 12:14:21 +0100
committerKarel Zak2015-03-10 11:19:33 +0100
commitae6846b842b4912f03730ac475e19a7916302893 (patch)
tree78016ee51b94a574c96c31f897a3faccd9d46b7a /misc-utils/logger.1
parentlogger man page: update --size doc (diff)
downloadkernel-qcow2-util-linux-ae6846b842b4912f03730ac475e19a7916302893.tar.gz
kernel-qcow2-util-linux-ae6846b842b4912f03730ac475e19a7916302893.tar.xz
kernel-qcow2-util-linux-ae6846b842b4912f03730ac475e19a7916302893.zip
logger: add --skip-empty-lines to prevent logging empty lines
Empty log messages are generally considered useless. This option enables to turn them off when processing files (including stdin). [kzak@redhat.com: - rename --skip-empty-lines to --skip-empty, - add the option to getopt_long(), - add the option to bash-completion] Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/logger.1')
-rw-r--r--misc-utils/logger.18
1 files changed, 8 insertions, 0 deletions
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
index 164c5f49c..d0293a801 100644
--- a/misc-utils/logger.1
+++ b/misc-utils/logger.1
@@ -51,6 +51,14 @@ given either, then standard input is logged.
Use datagrams (UDP) only. By default the connection is tried to the
syslog port defined in /etc/services, which is often 514 .
.TP
+.BR \-e , " \-\-skip-empty"
+When processing files, empty lines will be ignored. An empty line
+is defined to be a line without any characters. Thus a line consisting
+only of whitespace is NOT considered empty.
+Note that when the \fR\-\-prio\-prefix\fR option is specified, the priority
+is not part of the line. Thus an empty line in this mode is a line that does
+not have any characters after the priority (e.g. "<13>").
+.TP
.BR \-f , " \-\-file " \fIfile
Log the contents of the specified \fIfile\fR.
This option cannot be combined with a command-line message.