Fixes for /usr/xbin binaries bootstrap dir.
[minix3.git] / commands / syslogd / syslog_test.c
blob9a5bced9d47a659187af8658272b5294d9c74375
1 /*
2 ** syslog_test
3 **
4 ** Author: Giovanni Falzoni <gfalzoni@inwind.it>
5 ** $Id$
6 */
8 #include <sys/types.h>
9 #include <unistd.h>
10 #include <syslog.h>
13 ** SYSLOG TEST
14 ** Very simple utility to test syslog facility.
16 void main(void)
18 int ix;
20 openlog("syslog_test", LOG_PID | LOG_NDELAY | LOG_PERROR | LOG_CONS, LOG_DAEMON);
22 for (ix = LOG_EMERG; ix <= LOG_DEBUG; ix += 1) {
23 sleep(2);
24 syslog(ix, "message from test program - log level %d", ix);
26 closelog();
27 return;
30 /** syslog_test.c **/