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    Tue Apr 23 09:22:10 2024
--- -    Tue Apr 23 09:27:37 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