/* file: test-syslog.c purpose: test if syslog facility is working created: pasha jun 17 2002 */ #include #define SILLY_STRING "hey, it\'s working" int main () { printf ("sending \""SILLY_STRING"\" line to syslog\n"); /* openlog (); */ syslog (LOG_INFO|LOG_LOCAL0, SILLY_STRING"\n"); closelog (); exit (0); }