Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ logger(1) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

syslogd(8)

syslog(3)

logger(1)  —  Commands

OSF

NAME

logger − Makes entries in the system log

SYNOPSIS

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

The logger command makes the specified entries in the system log file. 

FLAGS

-f fileLogs all lines in file. 

-iLogs the process ID (PID) of the logger process with each line. 

-p priority
Enters the message with the specified priority.  You can specify priority numerically or as a pair. 

-t tagPrecedes each entry in the log with tag. 

DESCRIPTION

The logger command provides a program and shell script interface to the syslog() subroutine.  The file in which entries are made depends on the current system log configuration; see syslog and syslogd for more information. 

You can specify the message to be used for entries on the command line or with the -f file option, which specifies that each line in file be logged as an entry.  If you do not specify message or -f, logger reads standard input. 

EXAMPLE

     1.To log the system reboot, including the process ID of the process running logger,  enter:

logger -i System rebooted

     2.To log each line in the file build.events with the tag trial build preceding them, enter:

logger -f build.events -t "trial build"

RELATED INFORMATION

Commands:  syslogd(8). 

Functions:  syslog(3). 

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