File: evtsyslog.c

package info (click to toggle)
eventlog 0.2.8~1-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 320 kB
  • ctags: 155
  • sloc: ansic: 865; makefile: 97; sh: 43
file content (14 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <syslog.h>

#ifdef EVENTLOG_SYSLOG_MACROS
#include <evtlog.h>
#endif

int 
main()
{
  openlog("evtsyslog", LOG_PID, 0);
  syslog(LOG_AUTH | LOG_NOTICE, "test message");
  closelog();
  return 0;
}