2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt LOGGER 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2014-12-04 11:34:39 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm logger
|
|
|
|
.Nd make entries in the system log
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2014-12-04 11:34:39 +00:00
|
|
|
.Op Fl is
|
|
|
|
.Op Fl p Ar priority
|
|
|
|
.Op Fl t Ar tag
|
|
|
|
.Op Ar message ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
provides a shell command interface to the
|
|
|
|
.Xr syslog 3
|
2015-03-06 23:08:43 +00:00
|
|
|
system log module and writes each
|
|
|
|
.Ar message
|
|
|
|
to the log.
|
|
|
|
If no
|
|
|
|
.Ar message
|
|
|
|
is given,
|
|
|
|
.Nm
|
|
|
|
logs stdin.
|
2014-12-04 11:34:39 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width xxxxxxxxxxxx
|
|
|
|
.It Fl i
|
2015-03-06 23:08:43 +00:00
|
|
|
Add the logger process ID to each line in the log.
|
2014-12-04 11:34:39 +00:00
|
|
|
.It Fl p Ar priority
|
2015-03-06 23:08:43 +00:00
|
|
|
Set the message
|
|
|
|
.Ar priority
|
|
|
|
given symbolically as a
|
2014-12-04 11:34:39 +00:00
|
|
|
.Dq facility.level
|
2015-01-31 13:43:27 +00:00
|
|
|
pair. The default is
|
2014-12-04 11:34:39 +00:00
|
|
|
.Dq user.notice .
|
|
|
|
.It Fl s
|
2015-03-06 23:08:43 +00:00
|
|
|
Also log to stderr.
|
2014-12-04 11:34:39 +00:00
|
|
|
.It Fl t Ar tag
|
2015-03-06 23:08:43 +00:00
|
|
|
Add
|
|
|
|
.Ar tag
|
|
|
|
to each line in the log.
|
2014-12-04 11:34:39 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2015-01-31 13:43:27 +00:00
|
|
|
.Xr syslogd 1 ,
|
|
|
|
.Xr syslog 3
|
2014-12-04 11:34:39 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2014-12-04 11:34:39 +00:00
|
|
|
specification.
|
|
|
|
.Pp
|
2015-03-06 23:08:43 +00:00
|
|
|
The
|
2014-12-04 11:34:39 +00:00
|
|
|
.Op Fl ipst
|
2015-03-06 23:08:43 +00:00
|
|
|
flags are an extensions to that specification.
|