bsd man page for logger

Query: logger

OS: bsd

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

LOGGER(1)						      General Commands Manual							 LOGGER(1)

NAME
logger - make entries in the system log
SYNOPSIS
logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ message ... ]
ARGUMENTS
-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. A message can be given on the command line, which is logged immediately, or a file is read and each line is logged.
EXAMPLES
logger System rebooted logger -p local0.notice -t HOSTIDM -f /dev/idmc
SEE ALSO
syslog(3), syslogd(8) 4.3 Berkeley Distribution September 17, 1985 LOGGER(1)
Related Man Pages
logger(1) - redhat
logger(1) - debian
logger(1) - netbsd
logger(1b) - sunos
logger(1) - freebsd
Similar Topics in the Unix Linux Community
Script to remove line of text
Unix Log out time
Date format in the files written by syslogd
Problem with structure of authlog in regard to an external log Auditing system.
How to process only new line of tail -f command from live log file?