Commit | Line | Data |
---|---|---|
bede97d4 EA |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
5 | .\" @(#)logger.1 6.1 (Berkeley) %G% | |
6 | .\" | |
7 | .TH LOGGER 1 "" | |
8 | .UC 6 | |
9 | .SH NAME | |
10 | logger \- make entries in the system log | |
11 | .SH SYNOPSIS | |
12 | .B logger | |
13 | [ | |
14 | .B \-t | |
15 | tag | |
16 | ] [ | |
17 | .B \-p | |
18 | pri | |
19 | ] [ | |
20 | .B \-i | |
21 | ] [ | |
22 | .B \-f | |
23 | file | |
24 | ] [ | |
25 | message ... | |
26 | ] | |
27 | .SH ARGUMENTS | |
28 | .TP 12n | |
29 | .BI \-t \ tag | |
30 | Mark every line in the log with the specified | |
31 | .IR tag . | |
32 | .TP | |
33 | .BI \-p \ pri | |
34 | Enter the message with the specified priority. | |
35 | The priority may be specified numerically | |
36 | or as a ``facility.level'' | |
37 | pair. | |
38 | For example, ``\-p local3.info'' | |
39 | logs the message(s) as | |
40 | .IR info rmational | |
41 | level in the | |
42 | .I local3 | |
43 | facility. | |
44 | The default is ``user.notice.'' | |
45 | .TP | |
46 | .B \-i | |
47 | Log the process id of the logger process | |
48 | with each line. | |
49 | .TP | |
50 | .BI \-f \ file | |
51 | Log the specified file. | |
52 | .TP | |
53 | message | |
54 | The message to log; | |
55 | if not specified, | |
56 | the | |
57 | .B \-f | |
58 | file or standard input is logged. | |
59 | .SH DESCRIPTION | |
60 | .I Logger | |
61 | provides a program interface to the | |
62 | .IR syslog (3) | |
63 | system log module. | |
64 | .PP | |
65 | A message can be given on the command line, | |
66 | which is logged immediately, | |
67 | or a file is read and each line is logged. | |
68 | .SH EXAMPLES | |
69 | logger System rebooted | |
70 | .PP | |
71 | logger \-p local0.notice \-t HOSTIDM \-f /dev/idmc | |
72 | .SH SEE ALSO | |
73 | syslog(3), | |
74 | syslogd(8) |