BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / logger.0
CommitLineData
362b077f
C
1
2
3
4LOGGER(1) UNIX Programmer's Manual LOGGER(1)
5
6
7
8N\bNA\bAM\bME\bE
9 logger - make entries in the system log
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 l\blo\bog\bgg\bge\ber\br [ -\b-t\bt tag ] [ -\b-p\bp pri ] [ -\b-i\bi ] [ -\b-f\bf file ] [ message
13 ... ]
14
15A\bAR\bRG\bGU\bUM\bME\bEN\bNT\bTS\bS
16 -\b-t\bt _\bt_\ba_\bg Mark every line in the log with the specified
17 _\bt_\ba_\bg.
18
19 -\b-p\bp _\bp_\br_\bi Enter the message with the specified priority.
20 The priority may be specified numerically or as
21 a ``facility.level'' pair. For example, ``-p
22 local3.info'' logs the message(s) as
23 _\bi_\bn_\bf_\bormational level in the _\bl_\bo_\bc_\ba_\bl_\b3 facility. The
24 default is ``user.notice.''
25
26 -\b-i\bi Log the process id of the logger process with
27 each line.
28
29 -\b-f\bf _\bf_\bi_\bl_\be Log the specified file.
30
31 message The message to log; if not specified, and the -\b-f\bf
32 flag is not provided, standard input is logged.
33
34D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
35 _\bL_\bo_\bg_\bg_\be_\br provides a program interface to the _\bs_\by_\bs_\bl_\bo_\bg(3) system
36 log module.
37
38E\bEX\bXA\bAM\bMP\bPL\bLE\bES\bS
39 logger System rebooted
40
41 logger -p local0.notice -t HOSTIDM -f /dev/idmc
42
43S\bSE\bEE\bE A\bAL\bLS\bSO\bO
44 syslog(3), syslogd(8)
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63Printed 7/9/88 July 9, 1988 1
64
65
66