2014-12-04 11:34:39 +00:00
|
|
|
.Dd December 4, 2014
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt LOGGER 1
|
2014-12-04 11:34:39 +00:00
|
|
|
.Os
|
|
|
|
.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
|
|
|
|
system log module.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width xxxxxxxxxxxx
|
|
|
|
.It Fl i
|
|
|
|
Log the process ID of the logger process with each line.
|
|
|
|
.It Fl p Ar priority
|
2015-01-31 13:43:27 +00:00
|
|
|
Enter the message with the specified priority. They priority has to be
|
|
|
|
specified symbolically as
|
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
|
|
|
|
Log the message to standard error, as well as the system log.
|
|
|
|
.It Fl t Ar tag
|
|
|
|
Mark every line in the log with the specified
|
|
|
|
.Ar tag .
|
|
|
|
.It Ar message
|
2015-01-31 13:43:27 +00:00
|
|
|
Write the message to the log; if not specified, standard input is logged.
|
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
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification.
|
|
|
|
.Pp
|
|
|
|
The flags
|
|
|
|
.Op Fl ipst
|
|
|
|
are extensions to that specification.
|