|
|
1.1 root 1: .\" Copyright (c) 1983, 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)logger.1 6.6 (Berkeley) 7/24/90
19: .\"
20: .Dd July 24, 1990
21: .Dt LOGGER 1
22: .Os BSD 4.3
23: .Sh NAME
24: .Nm logger
25: .Nd make entries in the system log
26: .Sh SYNOPSIS
27: .Nm logger
28: .Op Fl is
29: .Op Fl f Ar file
30: .Op Fl p Ar pri
31: .Op Fl t Ar tag
32: .Op Ar message ...
33: .Sh DESCRIPTION
34: .Nm Logger
35: provides a shell command interface to the
36: .Xr syslog 3
37: system log module.
38: .Pp
39: Options:
40: .Pp
41: .Tw Fl
42: .Tp Fl i
43: Log the process id of the logger process
44: with each line.
45: .Tp Fl s
46: Log the message to standard error, as well as the system log.
47: .Tc Fl f
48: .Ws
49: .Ar file
50: .Cx
51: Log the specified file.
52: .Tc Fl p
53: .Ws
54: .Ar pri
55: .Cx
56: Enter the message with the specified priority.
57: The priority may be specified numerically or as a ``facility.level''
58: pair.
59: For example, ``\-p local3.info'' logs the message(s) as
60: .Sf Ar info rmational
61: level in the
62: .Ar local3
63: facility.
64: The default is ``user.notice.''
65: .Tc Fl t
66: .Ws
67: .Ar tag
68: .Cx
69: Mark every line in the log with the specified
70: .Ar tag .
71: .Tp Ar message
72: Write the message to log; if not specified, and the
73: .Fl f
74: flag is not
75: provided, standard input is logged.
76: .Tp
77: .Pp
78: The
79: .Nm logger
80: utility exits 0 on success, and >0 if an error occurs.
81: .Sh EXAMPLES
82: .Pp
83: .Dl logger System rebooted
84: .Pp
85: .Dl logger \-p local0.notice \-t HOSTIDM \-f /dev/idmc
86: .Sh SEE ALSO
87: .Xr syslog 3 ,
88: .Xr syslogd 8
89: .Sh STANDARDS
90: The logger function is expected to be POSIX 1003.2 compatible.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.