summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.1
diff options
context:
space:
mode:
authorKarel Zak2015-03-16 12:38:46 +0100
committerKarel Zak2015-03-16 12:38:46 +0100
commitfd343a05726658514fc9679cc226ea8aa89549d6 (patch)
tree6c9b1d7682fdf39d27f6423128c149dd1e97224e /misc-utils/logger.1
parentlogger: fix rfc5424 format crash (diff)
downloadkernel-qcow2-util-linux-fd343a05726658514fc9679cc226ea8aa89549d6.tar.gz
kernel-qcow2-util-linux-fd343a05726658514fc9679cc226ea8aa89549d6.tar.xz
kernel-qcow2-util-linux-fd343a05726658514fc9679cc226ea8aa89549d6.zip
logger: add --no-act for testing
* force --journal mode to also output to stderr when the option --stderr specified on command line * add --no-act to avoid all write() operations to make it possible to write tests without "spam" system logs Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/logger.1')
-rw-r--r--misc-utils/logger.15
1 files changed, 5 insertions, 0 deletions
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
index e972a0a4b..f70f7eb7a 100644
--- a/misc-utils/logger.1
+++ b/misc-utils/logger.1
@@ -101,6 +101,11 @@ inside of \fIMSGID\fR. This option is only used if \fB\-\-rfc5424\fR is
specified as well. Otherwise, it is silently ignored.
.TP
+.BR \-\-no\-act
+Causes everything to be done except for the write the log message to the system
+log, remove connection or journal. This options is usable together with
+\fB\-\-stderr\fR for testing purpose.
+.TP
.BR \-\-size " \fIsize
Sets the maximum permitted message size to \fIsize\fR. The default
is 1KiB characters, which is the limit traditionally used and specified