Update man page with missing -u SOCK documentation

Also, update FILES section with correct information on the UNIX domain
socket path used on Linux.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-07 21:53:51 +01:00
parent 60239756af
commit 12d5536dfc

View File

@ -38,6 +38,7 @@
.Op Fl p Ar PRIO .Op Fl p Ar PRIO
.Op Fl r Ar SIZE:NUM .Op Fl r Ar SIZE:NUM
.Op Fl t Ar TAG .Op Fl t Ar TAG
.Op Fl u Ar SOCK
.Op Ar MESSAGE .Op Ar MESSAGE
.Sh DESCRIPTIOMN .Sh DESCRIPTIOMN
.Nm .Nm
@ -92,6 +93,11 @@ denotes number of rotated files to keep when logging to a file, default:
Log to stderr as well as the system log. Log to stderr as well as the system log.
.It Fl t Ar TAG .It Fl t Ar TAG
Log using the specified tag, default: username. Log using the specified tag, default: username.
.It Fl u Ar SOCK
Log to UNIX domain socket
.Ar SOCK
instead of the default
.Pa /dev/log .
.It Fl v .It Fl v
Show program version. Show program version.
.It Ar MESSAGE .It Ar MESSAGE
@ -113,27 +119,24 @@ logger -t dropbear -p auth.notice "Successful login for user 'admin' from 1.2.3.
logger -t udhcpc -f /tmp/script.log "New lease 1.2.3.200 obtained for interface eth0" logger -t udhcpc -f /tmp/script.log "New lease 1.2.3.200 obtained for interface eth0"
.Ed .Ed
.Sh FILES .Sh FILES
.Bl -tag -width /var/run/log -compact .Bl -tag -width /dev/log -compact
.It Ar FILE .It Ar FILE
If a log file is enabled, using If a custom log file is selected, using
.Fl f Ar FILE , .Fl f Ar FILE ,
then this file is opened and written to by then this file is opened and written to by
.Nm . .Nm .
With log file rotation, When log file rotation is enabled, using
.Fl r Ar SIZE:NUM , .Fl r Ar SIZE:NUM ,
this means
.Nm .Nm
also creates creates
.Pa FILE.1 FILE.2 FILE.3.gz .Pa FILE.1 FILE.2 FILE.3.gz
etc. etc.
.It Pa /var/run/log .It Pa /dev/log
Socket to connect to for communicating with Socket used for communicating with
.Xr syslogd 8 . .Xr syslogd 8 .
In older implementations When built on BSD
.Pa /dev/log .Pa /var/run/log
was used. This means this version of is used.
.Nm
is not compatible with older releases, or other (local) syslog servers.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr syslogp 3 .Xr syslogp 3
@ -151,5 +154,5 @@ and be extended upon in the sysklogd project.
The The
.Nm .Nm
command is expected to be IEEE Std 1003.2 ("POSIX.2") compatible, with command is expected to be IEEE Std 1003.2 ("POSIX.2") compatible, with
extensions for RFC5424 and log file rotation. extensions for RFC5424 from NetBSD and custom log file and log file
.Sh AVAILABILITY rotation unique to the sysklogd project.