1LOGGER(1)                   General Commands Manual                  LOGGER(1)
2
3
4

NAME

6       logger - make entries in the system log
7

SYNOPSIS

9       logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ message ...  ]
10

ARGUMENTS

12       -t tag      Mark every line in the log with the specified tag.
13
14       -p pri      Enter  the message with the specified priority.  The prior‐
15                   ity may be specified numerically or as a ``facility.level''
16                   pair.   For example, ``-p local3.info'' logs the message(s)
17                   as informational level in the local3 facility.  The default
18                   is ``user.notice.''
19
20       -i          Log the process id of the logger process with each line.
21
22       -f file     Log the specified file.
23
24       message     The  message to log; if not specified, the -f file or stan‐
25                   dard input is logged.
26

DESCRIPTION

28       Logger provides a program interface to the syslog(3) system log module.
29
30       A message can be given on the command line,  which  is  logged  immedi‐
31       ately, or a file is read and each line is logged.
32

EXAMPLES

34       logger System rebooted
35
36       logger -p local0.notice -t HOSTIDM -f /dev/idmc
37

SEE ALSO

39       syslog(3), syslogd(8)
40
41
42
434.3 Berkeley Distribution     September 17, 1985                     LOGGER(1)
Impressum