logger.1 - sbase - suckless unix tools
(HTM) git clone git://git.suckless.org/sbase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
logger.1 (814B)
---
1 .Dd October 8, 2015
2 .Dt LOGGER 1
3 .Os sbase
4 .Sh NAME
5 .Nm logger
6 .Nd make entries in the system log
7 .Sh SYNOPSIS
8 .Nm
9 .Op Fl is
10 .Op Fl p Ar priority
11 .Op Fl t Ar tag
12 .Op Ar message ...
13 .Sh DESCRIPTION
14 .Nm
15 provides a shell command interface to the
16 .Xr syslog 3
17 system log module and writes each
18 .Ar message
19 to the log.
20 If no
21 .Ar message
22 is given,
23 .Nm
24 logs stdin.
25 .Sh OPTIONS
26 .Bl -tag -width xxxxxxxxxxxx
27 .It Fl i
28 Add the logger process ID to each line in the log.
29 .It Fl p Ar priority
30 Set the message
31 .Ar priority
32 given symbolically as a
33 .Dq facility.level
34 pair.
35 The default is
36 .Dq user.notice .
37 .It Fl s
38 Also log to stderr.
39 .It Fl t Ar tag
40 Add
41 .Ar tag
42 to each line in the log.
43 .El
44 .Sh SEE ALSO
45 .Xr syslogd 1 ,
46 .Xr syslog 3
47 .Sh STANDARDS
48 POSIX.1-2013.
49 .Pp
50 The
51 .Op Fl ipst
52 flags are an extensions to that specification.