version 1.2, 1996/06/26 05:35:58 |
version 1.3, 1998/09/26 19:55:00 |
|
|
.Op Fl t Ar tag |
.Op Fl t Ar tag |
.Op Ar message ... |
.Op Ar message ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Logger |
.Nm logger |
provides a shell command interface to the |
provides a shell command interface to the |
.Xr syslog 3 |
.Xr syslog 3 |
system log module. |
system log module. |
|
|
.Pp |
.Pp |
.Bl -tag -width "message" |
.Bl -tag -width "message" |
.It Fl i |
.It Fl i |
Log the process id of the logger process |
Log the process ID of the logger process |
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. |
|
|
.Pp |
.Pp |
The |
The |
.Nm logger |
.Nm logger |
utility exits 0 on success, and >0 if an error occurs. |
utility exits 0 on success or >0 if an error occurred. |
.Sh EXAMPLES |
.Sh EXAMPLES |
.Bd -literal -offset indent -compact |
.Bd -literal -offset indent -compact |
logger System rebooted |
logger System rebooted |