Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

syslog(3)

syslogd(8)

LOGGER(1)                            BSD                             LOGGER(1)



NAME
     logger - make entries in the system log

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

DESCRIPTION
     logger provides a program interface to the syslog(3) system log module.

     You can give logger a message on the command line, which is logged
     immediately, or logger can read a file and log each line.

OPTIONS
     -t tag      Mark every line in the log with the specified tag.

     -p pri      Enter the message with the specified priority.  You  can
                 specify the priority numerically or as a "facility.level"
                 pair.  For example, -p local3.info logs the message(s) as
                 informational level in the local3 facility.  The default is
                 "user.notice."

     -i          Log the process ID of the logger process with each line.

     -f file     Log the specified file.

     message     The message to log; if you do not specify one, logger logs
                 the -f file or standard input.

EXAMPLES
          % logger System rebooted

          % logger -p local0.notice -t HOSTIDM -f /dev/idmc


SEE ALSO
     syslog(3), syslogd(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026