4.3BSD-UWisc/man/man1/logger.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)logger.1	6.1 (Berkeley) 9/17/85
.\"
.TH LOGGER 1 "September 17, 1985"
.UC 6
.SH NAME
logger \- make entries in the system log
.SH SYNOPSIS
.B logger
[
.B \-t
tag
] [
.B \-p
pri
] [
.B \-i
] [
.B \-f
file
] [
message ...
]
.SH ARGUMENTS
.TP 12n
.BI \-t \ tag
Mark every line in the log with the specified
.IR tag .
.TP
.BI \-p \ pri
Enter the message with the specified priority.
The priority may be specified numerically
or as a ``facility.level''
pair.
For example, ``\-p local3.info''
logs the message(s) as
.IR info rmational
level in the
.I local3
facility.
The default is ``user.notice.''
.TP
.B \-i
Log the process id of the logger process
with each line.
.TP
.BI \-f \ file
Log the specified file.
.TP
message
The message to log;
if not specified,
the
.B \-f
file or standard input is logged.
.SH DESCRIPTION
.I Logger
provides a program interface to the
.IR syslog (3)
system log module.
.PP
A message can be given on the command line,
which is logged immediately,
or a file is read and each line is logged.
.SH EXAMPLES
logger System rebooted
.PP
logger \-p local0.notice \-t HOSTIDM \-f /dev/idmc
.SH SEE ALSO
syslog(3),
syslogd(8)