logger(1) DG/UX 4.30 logger(1)
NAME
logger - make entries in the system log
SYNOPSIS
logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ message
... ]
PARAMETERS
-t tag Mark every line in the log with the specified
tag.
-p pri 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 file Log the specified file.
message The message to log; if not specified, the -f
file or standard input is logged.
DESCRIPTION
Logger provides a program interface to the syslog(3) 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).
EXAMPLES
% logger System rebooted
% logger -p local0.notice -t HOSTIDM
SEE ALSO
syslog(3), syslog.conf(5), syslogd(8).
Licensed material--property of copyright holder(s) Page 1