.\" 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 .RB [ \-t .IR tag ] .RB [ \-p .IR pri ] .RB [ \-is ] .RB [ \-f .IR file ] .RI [ 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 .B local3 facility. The default is ``user.notice.'' .TP .B \-i Log the process id of the logger process with each line. .TP .B \-s Log to standard error. .TP .BI \-f " file Log the specified file. .TP .I message The message to log; if not specified, the .B \-f file or standard input is logged. .SH DESCRIPTION .B Logger provides a program interface to the .BR 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 .BR syslog (3), .BR syslogd (8).