sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

logger.1 (866B)


      1 .Dd 2015-10-08
      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. The default is
     35 .Dq user.notice .
     36 .It Fl s
     37 Also log to stderr.
     38 .It Fl t Ar tag
     39 Add
     40 .Ar tag
     41 to each line in the log.
     42 .El
     43 .Sh SEE ALSO
     44 .Xr syslogd 1 ,
     45 .Xr syslog 3
     46 .Sh STANDARDS
     47 The
     48 .Nm
     49 utility is compliant with the
     50 .St -p1003.1-2013
     51 specification.
     52 .Pp
     53 The
     54 .Op Fl ipst
     55 flags are an extensions to that specification.