LOGGER(1,C) AIX Commands Reference LOGGER(1,C)
-------------------------------------------------------------------------------
logger
PURPOSE
Provides a program interface to the syslog system log module.
SYNTAX
+---------+ +-----------+
logger ---| -t tag |---| |---|
^ | -p pri | | +- message -+
| | -i | |
| | -f file | |
| +---------+ |
+-------------+
DESCRIPTION
The logger command provides a program interface to the syslog 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.
FLAGS
-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.
EXAMPLES
1. To reboot the system.
Processed November 8, 1990 LOGGER(1,C) 1
LOGGER(1,C) AIX Commands Reference LOGGER(1,C)
logger
logger -p local0.notice -t HOSTIDM -f /dev/idmc
RELATED INFORMATION
See the following command: "syslogd."
Processed November 8, 1990 LOGGER(1,C) 2