The syslog constants are replicated here because not all systems have the (binary) syslog module.
RFC5424 priority values are a combination of a priority and facility code, for example:
prival = LOG_ALERT | LOG_DAEMON
Priorities
Constant |
Description |
LOG_EMERG |
System is unusable |
LOG_ALERT |
Action must be taken immediately |
LOG_CRIT |
Critical conditions |
LOG_ERR |
Error conditions |
LOG_WARNING |
Warning conditions |
LOG_NOTICE |
Normal but significant condition |
LOG_INFO |
Informational |
LOG_DEBUG |
Debug-level messages |
Facility codes
Constant |
Description |
LOG_KERN |
Kernel messages |
LOG_USER |
Random user-level messages |
LOG_MAIL |
Mail system |
LOG_DAEMON |
System daemons |
LOG_AUTH |
Security/authorization messages |
LOG_SYSLOG |
Messages generated internally by syslogd |
LOG_LPR |
Line printer subsystem |
LOG_NEWS |
Network news subsystem |
LOG_UUCP |
UUCP subsystem |
LOG_CRON |
Clock daemon |
LOG_AUTHPRIV |
Security/authorization messages (private) |
LOG_LOCAL0 |
Reserved for local use |
LOG_LOCAL1 |
Reserved for local use |
LOG_LOCAL2 |
Reserved for local use |
LOG_LOCAL3 |
Reserved for local use |
LOG_LOCAL4 |
Reserved for local use |
LOG_LOCAL5 |
Reserved for local use |
LOG_LOCAL6 |
Reserved for local use |
LOG_LOCAL7 |
Reserved for local use |