OSSP CVS Repository

ossp - Check-in [1503]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1503
Date: 2002-Jan-03 17:13:05 (local)
2002-Jan-03 16:13:05 (UTC)
User:rse
Branch:
Comment: integrate first cut of l2syslog stuff (missing file)
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_test_syslog.c      added-> 1.1

ossp-pkg/l2/l2_test_syslog.c -> 1.1

*** /dev/null    Sat Nov 23 02:07:38 2024
--- -    Sat Nov 23 02:08:02 2024
***************
*** 0 ****
--- 1,14 ----
+ 
+ #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