/usr/bin/logger

A command-line utility for writing to Unix log files manually. Logger is used mainly by the shell scripts which are run by SysV init. It works by making calls to the kernel logging interface, syslog(3), so using logger on systems that use a syslogd will transparently pass the log message to that daemon for processing.

Syntax:

  logger [options] <message>

This will write <message> to the kernel log interface, which usually spits the message out into one of the text files in /var/log/*.log. (This depends on how /etc/syslog.conf is set up.) The most common option used is:

-p <priority>
Priority tells the syslog facility how to mark the message for routing. Sort of like the address on an envelope, the priority—of the form facility.level, where facility is a category for syslog messages: e.g. "mail" or "security" and level is how important the message is, e.g. "info" or "crit"—determines which file the message ends up in.

Log"ger (?), n.

One engaged in logging. See Log, v. i.

[U.S.]

Lowell.

 

© Webster 1913.

Log in or register to write something here or to contact authors.