logger(TC) 19 June 1992 logger(TC) Name logger - make entries in the system log Syntax /usr/bin/logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ message ... ] Description logger provides a program interface to the syslog(SLIB) system log module. A message can be given on the command line, which is logged immediately, or a file is read and each line is logged. Options -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. Notes The name logger conflicts with the system error logger, /etc/logger. Examples logger system rebooted: logger -p local0.notice -t OPER -f /tmp/msg See also syslog(SLIB), syslogd(ADMN).