4 ** Author: Giovanni Falzoni <gfalzoni@inwind.it>
14 ** Very simple utility to test syslog facility.
20 openlog("syslog_test", LOG_PID
| LOG_NDELAY
| LOG_PERROR
| LOG_CONS
, LOG_DAEMON
);
22 for (ix
= LOG_EMERG
; ix
<= LOG_DEBUG
; ix
+= 1) {
24 syslog(ix
, "message from test program - log level %d", ix
);