syslog
This optional clause creates a syslog logger, which logs all messages with a specified priority level or higher to the syslog system.
Messages are logged to syslog with severity levels that depend on the severity of the message. There are 8 defined priority levels in syslog, and they are logged to the equivalent syslog priority. The priority levels with their corresponding values and descriptions are:
- Emergency (0): System is unusable
- Alert (1): Immediate action needed
- Critical (2): Critical conditions
- Error (3): Error conditions
- Warning (4): Warning conditions
- Notice (5): Normal but significant conditions
- Informational (6): Informational messages
- Debug (7): Debug-level messages
Example configuration of a syslog logger:
syslog {
loglevel info;
facility daemon;
# optional syslog unix domain socket path
#filename /var/run/syslog;
}