man: update logger(1), it can log to remote servers now

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2022-07-31 17:32:13 +02:00
parent 5662afe2c0
commit c095131ff9

View File

@ -30,7 +30,7 @@
.Os sysklogd .Os sysklogd
.Sh NAME .Sh NAME
.Nm logger .Nm logger
.Nd Send messages to system log, or a log file .Nd Send messages to system log daemon, or a log file
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl 46bchiknsv .Op Fl 46bchiknsv
@ -48,20 +48,22 @@
.Op Ar MESSAGE .Op Ar MESSAGE
.Sh DESCRIPTIOMN .Sh DESCRIPTIOMN
.Nm .Nm
can be used to log messages to the system log daemon from a UNIX shell, can be used to log messages to a local or remote system log daemon, or a
or script. Optionally a stand-alone log file can be used, in which case log file, from a UNIX shell, or script. The new
the
.Xr syslogp 3 .Xr syslogp 3
API is still used but API is always used but
.Nm syslogd .Nm syslogd
is bypassed. This log file can also be automatically log rotated. is bypassed in the remote log daemon and local log file use-cases. The
log file is also be automatically rotated. See below for log rotation
options.
.Pp .Pp
Without a Without a
.Ar MESSAGE .Ar MESSAGE
argument argument,
.Nm .Nm
reads input from waits for input on
.Ar stdin . .Ar stdin ,
consuming all data until EOF.
.Sh OPTIONS .Sh OPTIONS
This program follows the usual UNIX command line syntax: This program follows the usual UNIX command line syntax:
.Bl -tag -width Ds .Bl -tag -width Ds