Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ logger(1) — Duplix 4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

syslog(3)

syslogd(8)

LOGGER(1)  —  Unix Programmer’s Manual

NAME

logger − make entries in the system log

SYNOPSIS

logger [ options ] [ message ]

DESCRIPTION

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

Logger takes the message you typed on the command line and logs it immediately in the system log.  If you want to log a file instead of a command line message, use the −f option to tell logger which file to read.  Logger then logs each line of the file in the system log.  If you do not specify a message or a file to log from, logger reads from the standard input. 

OPTIONS

−f file Logs the specified file. 

−i Logs the process id of the logger process with each line. 

−p pri Enters the message with the specified priority.  The priority may be specified 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.”

−t tag Marks every line in the log with the specified tag.

EXAMPLES

logger System rebooted

logger −p local0.notice −t HOSTIDM −f /dev/idmc

SEE ALSO

syslog(3), syslogd(8)

6 BSD  —  September 17, 1985

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