BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / logger.0
LOGGER(1) UNIX Programmer's Manual LOGGER(1)
N\bNA\bAM\bME\bE
logger - make entries in the system log
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
l\blo\bog\bgg\bge\ber\br [ -\b-t\bt tag ] [ -\b-p\bp pri ] [ -\b-i\bi ] [ -\b-f\bf file ] [ message
... ]
A\bAR\bRG\bGU\bUM\bME\bEN\bNT\bTS\bS
-\b-t\bt _\bt_\ba_\bg Mark every line in the log with the specified
_\bt_\ba_\bg.
-\b-p\bp _\bp_\br_\bi 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
_\bi_\bn_\bf_\bormational level in the _\bl_\bo_\bc_\ba_\bl_\b3 facility. The
default is ``user.notice.''
-\b-i\bi Log the process id of the logger process with
each line.
-\b-f\bf _\bf_\bi_\bl_\be Log the specified file.
message The message to log; if not specified, and the -\b-f\bf
flag is not provided, standard input is logged.
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bL_\bo_\bg_\bg_\be_\br provides a program interface to the _\bs_\by_\bs_\bl_\bo_\bg(3) system
log module.
E\bEX\bXA\bAM\bMP\bPL\bLE\bES\bS
logger System rebooted
logger -p local0.notice -t HOSTIDM -f /dev/idmc
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
syslog(3), syslogd(8)
Printed 7/9/88 July 9, 1988 1