Fix #61: add support for -c and -cc to disable log compression
This patch imports the FreeBSD meaning to the `-c` command line option. It disables "last message repeated" style log compression for repeated log messages. A single `-c` disables compression for pipes, another `-c` (-cc works) also disables compression for all other log targets. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
b3d0a9b638
commit
218a032557
2 files changed
+15
-3
No files matched your search
+7
-1
@@ -38,7 +38,7 @@
|
||||
.Nd log systems messages
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl ?468AdFHKknsTtv
|
||||
.Op Fl ?468AcdFHKknsTtv
|
||||
.Op Fl a Ar addr[/len][:port]
|
||||
.Op Fl a Ar name[:port]
|
||||
.Op Fl b Ar addr[:port]
|
||||
@@ -245,6 +245,12 @@ relies on this file being removed at system reboot. The default
|
||||
location depends on the system and how
|
||||
.Nm
|
||||
was configured.
|
||||
.It Fl c
|
||||
Disable the compression of repeated instances of the same line into a
|
||||
single line of the form
|
||||
.Dq Li "last message repeated N times"
|
||||
when the output is a pipe to another program. If specified twice,
|
||||
disable this compression in all cases.
|
||||
.It Fl d
|
||||
Put
|
||||
.Nm
|
||||
|
||||
Reference in new issue
Block a user