I have been trying to use the syslog function on a Solaris 8 machine. This is what I have:
define_syslog_variables();
openlog("test", LOG_CONS | LOG_NDELAY, LOG_LOCAL1);
syslog(LOG_ERR, "test message");
closelog();
However, I get nothing in my local1 system log. My syslogd configuration is correct, since other programs calling syslogd work.
I've also tried replacing the constants with their actual numeric values that I got from /usr/include/sys/syslog.h:
openlog("test", 10, 136);
syslog(3, "test message");
closelog();
I still don't get anything. Does anyone know what could be going on?