Sort options, add RETURN VALUES section.
This commit is contained in:
parent
9a02e1d47d
commit
b325f1d9d7
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: logger.1,v 1.10 2008/10/31 16:12:18 christos Exp $
|
||||
.\" $NetBSD: logger.1,v 1.11 2008/11/01 14:03:12 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -38,11 +38,11 @@
|
|||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl is
|
||||
.Op Fl d Ar SD
|
||||
.Op Fl f Ar file
|
||||
.Op Fl m Ar msgid
|
||||
.Op Fl p Ar pri
|
||||
.Op Fl t Ar tag
|
||||
.Op Fl m Ar msgid
|
||||
.Op Fl d Ar SD
|
||||
.Op Ar message ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
|
@ -52,12 +52,7 @@ system log module.
|
|||
.Pp
|
||||
Options:
|
||||
.Pp
|
||||
.Bl -tag -width "message"
|
||||
.It Fl i
|
||||
Log the process id of the logger process
|
||||
with each line.
|
||||
.It Fl s
|
||||
Log the message to standard error, as well as the system log.
|
||||
.Bl -tag -width "messageXX"
|
||||
.It Fl d Ar sd
|
||||
Log this in the structured data (SD) field.
|
||||
.Po
|
||||
|
@ -67,31 +62,37 @@ the shell.
|
|||
.Pc
|
||||
.It Fl f Ar file
|
||||
Log the specified file.
|
||||
.It Fl i
|
||||
Log the process id of the logger process
|
||||
with each line.
|
||||
.It Fl m Ar msgid
|
||||
The MSGID used for the message.
|
||||
.It Fl p Ar pri
|
||||
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.
|
||||
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
|
||||
level in the
|
||||
.Ar local3
|
||||
facility.
|
||||
The default is ``user.notice.''
|
||||
The default is
|
||||
.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
|
||||
Write the message to log; if not specified, and the
|
||||
.Fl f
|
||||
flag is not
|
||||
provided, standard input is logged.
|
||||
flag is not provided, standard input is logged.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Nm
|
||||
utility exits 0 on success, and \*[Gt]0 if an error occurs.
|
||||
.Sh RETURN VALUES
|
||||
.Ex -std logger
|
||||
.Sh EXAMPLES
|
||||
.Bd -literal -offset indent -compact
|
||||
logger System rebooted
|
||||
|
|
Loading…
Reference in New Issue