Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ logger(1) — OSF/1 X2.0-8 MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

binlogd(8)

syslogd(8)

uerf(8)

syslog(3)

logger(1)  —  Commands

OSF  —  Environment_Note_Added

NAME

logger − Makes entries in the system log

SYNOPSIS

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

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

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. 

FLAGS

-bSee the ENVIRONMENT NOTES section for information on the -b flag. 

-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. 

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"

ENVIRONMENT NOTES

This section describes system features that are not generic to OSF/1 but that are provided in this OSF/1 implementation. 

Digital Extensions

FLAGS

-bLogs the message to the binary event logger instead of the syslog() subroutine and enters information in the binary event log file.  The uerf command with the -r 250 option reports the informational messages that are in the binary event log file, which is used for system maintenance and troubleshooting. 

RESTRICTIONS

The -b flag cannot be used with the -f flag. 
 

RELATED INFORMATION

Commands:  binlogd(8), syslogd(8), and uerf(8). 

Functions:  syslog(3). 
 

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