Skip to main content

Module sys_syslog

Module sys_syslog 

Source
Expand description

Modules§

logger
sys

Constants§

LOG_ALERT
LOG_AUTH
LOG_AUTHPRIV
LOG_CONS
Write to /dev/console if syslog fails.
LOG_CRIT
LOG_CRON
LOG_DAEMON
LOG_DEBUG
LOG_EMERG
LOG_ERR
LOG_FTP
LOG_INFO
LOG_KERN
LOG_LOCAL0
LOG_LOCAL1
LOG_LOCAL2
LOG_LOCAL3
LOG_LOCAL4
LOG_LOCAL5
LOG_LOCAL6
LOG_LOCAL7
LOG_LPR
LOG_MAIL
LOG_NDELAY
Open the log file immediately.
LOG_NEWS
LOG_NFACILITIES
LOG_NOTICE
LOG_NOWAIT
LOG_ODELAY
Open the log on the first call to syslog rather than opening it early. This is the default behavior and setting or unsetting this option does nothing.
LOG_PERROR
Print log message to stderr as well as the log.
LOG_PID
Record the caller’s PID in log messages.
LOG_SYSLOG
LOG_USER
LOG_UUCP
LOG_WARNING

Functions§

LOG_MASK
Create a mask that enables a single priority.
LOG_UPTO
Create a mask that includes all levels up to a certain priority.
closelog
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/closelog.html.
openlog
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/closelog.html.
setlogmask
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/closelog.html.
syslog
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/closelog.html.
vsyslog
See https://www.man7.org/linux/man-pages/man3/vsyslog.3.html.