version 1.4, 1998/11/11 23:01:45 |
version 1.5, 1999/06/05 01:21:32 |
|
|
.\" |
.\" |
.Dd June 6, 1993 |
.Dd June 6, 1993 |
.Dt LOGGER 1 |
.Dt LOGGER 1 |
.Os BSD 4.3 |
.Os |
.Sh NAME |
.Sh NAME |
.Nm logger |
.Nm logger |
.Nd make entries in the system log |
.Nd make entries in the system log |
|
|
with each line. |
with each line. |
.It Fl s |
.It Fl s |
Log the message to standard error, as well as the system log. |
Log the message to standard error, as well as the system log. |
.It Fl f Ar file |
.It Fl f Ar file |
Log the specified file. |
Log the specified file. |
.It Fl p Ar pri |
.It Fl p Ar pri |
Enter the message with the specified priority. |
Enter the message with the specified priority. |
The priority may be specified numerically or as a ``facility.level'' |
The priority may be specified numerically or as a |
|
.Dq facility.level |
pair. |
pair. |
For example, ``\-p local3.info'' logs the message(s) as |
For example, |
|
.Dq \-p local3.info |
|
logs the message(s) as |
.Ar info Ns rmational |
.Ar info Ns rmational |
level in the |
level in the |
.Ar local3 |
.Ar local3 |
facility. |
facility. |
The default is ``user.notice.'' |
The default is |
.It Fl t Ar tag |
.Dq user.notice . |
|
.It Fl t Ar tag |
Mark every line in the log with the specified |
Mark every line in the log with the specified |
.Ar tag . |
.Ar tag . |
.It Ar message |
.It Ar message |
Write the message to log; if not specified, and the |
Write the message to log; if not specified, and the |
.Fl f |
.Fl f |