Solaris only. Log messages to the system log. Command-line messages are logged if provided. Otherwise, messages are read and logged, line-by-line, from the file provided via
. If no such file is given, logger
reads messages from standard input.
Read and log messages from file
Log the process ID of the logger
process with each message.
Log each message with the given priority
. Priorities have the form facility
. The default is
. See syslog
(3) for more information.
to each message line.
Warn about upcoming trouble:
logger -p user.emerg 'Incoming Klingon battleship!'