! SYSLOG.DEF [100] ! Symbols for MX_SYSLOG matching Linux syslog.h !-------------------.-------------------.-------------------.-------------------. !EDIT HISTORY ! [100] 23-Oct-25 / jdm / created !-------------------.-------------------.-------------------.-------------------. ! NOTES ! These match symbols from /usr/include/sys/syslog.h except we're using ! SYSLOG_ instead of LOG_, we we've replaced the LOG_UPTO() macro with ! SYSLOG_UPTO_xxx !-------------------.-------------------.-------------------.-------------------. ! facility codes (used with openlog(), i.e. MX_SYSLOG opflags = -1 define SYSLOG_USER = &h1000 ! random user-level messages (this is only practical choice) ! options flags (used with openlog(), i.e. MX_SYSLOG opflags = -1 define SYSLOG_PID = &h01 ! log the pid with each message define SYSLOG_CONS = &h02 ! log on the console if errors in sending define SYSLOG_ODELAY = &h04 ! delay open until first syslog() (default) define SYSLOG_NDELAY = &h08 ! don't delay open define SYSLOG_NOWAIT = &h10 ! don't wait for console forks: DEPRECATED define SYSLOG_PERROR = &h20 ! log to stderr as well ! level flags (aka priorities) define SYSLOG_EMERG = 0 ! system is unusable define SYSLOG_ALERT = 1 ! action must be taken immediately define SYSLOG_CRIT = 2 ! critical conditions define SYSLOG_ERR = 3 ! error conditions define SYSLOG_WARNING = 4 ! warning conditions define SYSLOG_NOTICE = 5 ! normal but significant condition define SYSLOG_INFO = 6 ! informational define SYSLOG_DEBUG = 7 ! debug-level messages ! setlogmask() flags define SYSLOG_UPTO_EMERG = &h0001 ! log messages up to SYSLOG_EMERG define SYSLOG_UPTO_ALERT = &h0003 ! log messages up to SYSLOG_ALERT define SYSLOG_UPTO_CRIT = &h0007 ! log messages up to SYSLOG_CRIT define SYSLOG_UPTO_ERR = &h000F ! log messages up to SYSLOG_ERR define SYSLOG_UPTO_WARNING = &h001F ! log messages up to SYSLOG_WARNING define SYSLOG_UPTO_NOTICE = &h003F ! log messages up to SYSLOG_NOTICE define SYSLOG_UPTO_INFO = &h007F ! log messages up to SYSLOG_INFO define SYSLOG_UPTO_DEBUG = &h00FF ! log messages up to SYSLOG_DEBUG