logger(1)logger(1)NAMElogger - make entries in the system log
SYNOPSIS
tag] pri] file] [message...]
DESCRIPTION
The command provides a program interface to the system log module (see
syslog(3C)).
A message can be given on the command line, which is logged immedi‐
ately, or a file is read and each line is logged. If no file or mes‐
sage is specified, the contents of the standard input are logged.
Options
The command recognizes the following command-line options and argu‐
ments:
Mark every line in the log with the specified
tag. The default is the value returned by (see
getlogin(3C)). If returns NULL, is the default.
Enter the message with the specified priority.
The priority can be specified numerically or as a
pair. For example, logs the message or messages
as level in the facility. The default is
Log the process ID
of the logger process with each line.
Log the contents of the specified file.
message The message to log; if not specified, the file
specified by the option or standard input is
logged.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string,
the value of is used as a default for each unspecified or empty vari‐
able. If is not specified or is set to the empty string, a default of
"C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting,
behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
Send the message to the daemon:
Send output from the command (see users(1) to the daemon, marked as
level and facility The message is tagged with the string
Send the message to the daemon, at the level and facility:
WARNINGS
The command has no effect if the daemon (see syslogd(1M)) is not run‐
ning on the system.
Messages written in locales other than the POSIX/C locale are not sup‐
ported.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSOsyslogd(1M), getlogin(3C), syslog(3C).
STANDARDS CONFORMANCElogger(1)