logger(1) DG/UX R4.11MU05 logger(1)
NAME
logger - make entries in the system log
SYNOPSIS
logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ msg ... ]
where:
tag Tag with which to mark every line in the log.
pri Message priority (see description of -p option below).
file Name of file containing lines to be logged.
msg The message to log; the default is to log the file specified
by -f, or standard input.
DESCRIPTION
Logger provides a program interface to the syslog(3C) system log
module.
You can specify a message on the command line, or you can specify a
file containing lines that you want logged.
You set the location of the system log file in syslog.conf(5).
Options
-t Mark every line in the log with the specified tag.
-p Enter 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.
-i Log the process id of the logger process with each line.
-f Log the specified file.
EXAMPLES
logger System rebooted
logger -p local0.notice -t HOSTIDM
SEE ALSO
syslogd(1M), syslog(3C), syslog.conf(5).
Licensed material--property of copyright holder(s)