OSSP CVS Repository

ossp - ossp-pkg/l2/l2_test_syslog.c
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/l2/l2_test_syslog.c

#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;
}


CVSTrac 2.0.1