OSSP CVS Repository |
|
#include <stdio.h> #include <syslog.h> int main(int argc, char *argv[]) { syslog(LOG_INFO, "Connection from host %s", "foo.bar.dom"); openlog("ftpd", LOG_PID|LOG_NDELAY, LOG_FTP); syslog(LOG_ALERT, "who: internal error 23\n"); setlogmask(LOG_UPTO(LOG_ERR)); syslog(LOG_INFO|LOG_LOCAL2, "foobar error: %m"); return 0; }