Debian Codegraph @

upstream/debian-unstable/man1/inetutils-logger.1

raw
1 .\" Copyright (c) 1983, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 4. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\" @(#)logger.1 8.1 (Berkeley) 6/6/93
29 .\"
30 .Dd February 15, 2019
31 .Dt logger 1 URM
32 .Os "GNU Network Utilities"
33 .Sh NAME
34 .Nm logger
35 .Nd make entries in the system log
36 .Sh SYNOPSIS
37 .Nm logger
38 .Op Ar options ...
39 .Op Ar message ...
40 .Sh DESCRIPTION
41 .Nm logger
42 provides a shell command interface to the
43 .Xr syslog 3
44 system log module.
45 .Sh OPTIONS
46 .Bl -tag -width "message"
47 .It Fl 4, -ipv4
48 Use IPv4 to connect to hosts.
49 .It Fl 6, -ipv6
50 Use IPv6 to connect to hosts.
51 .It Fl S , -source Ar ip
52 Set source IP address.
53 .It Fl h , -host Ar host
54 Log to
55 .Ar host
56 instead of to the default
57 .Pa /dev/log .
58 .It Fl u , -unix Ar sock
59 Log to UNIX socket
60 .Ar sock
61 instead of
62 .Pa /dev/log .
63 .It Fl i , -id Op Ar pid
64 Log the process id of the logger process with each line.
65 .It Fl s , -stderr
66 Log the message to standard error, as well as the system log.
67 .It Fl f , -file Ar file
68 Log the specified file.
69 .It Fl p , -priority Ar pri
70 Enter the message with the specified priority.
71 The priority may be specified numerically or as a "facility.level"
72 pair.
73 For example, "\-p local3.info" logs the message(s) as
74 .Ar info Ns rmational
75 level in the
76 .Ar local3
77 facility.
78 The default is "user.notice."
79 .It Fl t , -tag Ar tag
80 Mark every line in the log with the specified
81 .Ar tag .
82 .It Fl -usage
83 Display a short usage message.
84 .It Fl ?, -help
85 Display a help list.
86 .It Fl V, -version
87 Display program version.
88 .It Ar message
89 Write the message to log; if not specified, and the
90 .Fl f
91 flag is not
92 provided, standard input is logged.
93 .El
94 .Pp
95 The
96 .Nm logger
97 utility exits 0 on success, and >0 if an error occurs.
98 .Sh EXAMPLES
99 .Bd -literal -offset indent -compact
100 logger System rebooted
101
102 logger \-p local0.notice \-t HOSTIDM \-f /dev/idmc
103 .Ed
104 .Sh SEE ALSO
105 .Xr syslog 3 ,
106 .Xr syslogd 8 .
107 .Sh STANDARDS
108 The
109 .Nm logger
110 command is expected to be
111 .St -p1003.2
112 compatible.