OSSP CVS Repository

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

Check-in Number: 471
Date: 2001-May-17 16:42:00 (local)
2001-May-17 14:42:00 (UTC)
User:simons
Branch:
Comment: Implemented write() method of the syslog handler.
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_ch_syslog.c      1.2 -> 1.3     6 inserted, 3 deleted

ossp-pkg/l2/l2_ch_syslog.c 1.2 -> 1.3

--- l2_ch_syslog.c       2001/05/11 17:07:52     1.2
+++ l2_ch_syslog.c       2001/05/17 14:42:00     1.3
@@ -30,6 +30,8 @@
 #include "l2.h"
 #include "l2_p.h"
 
+#include <syslog.h>
+
 static int hook_create(l2_context_t *ctx)
 {
     return L2_OK;
@@ -45,11 +47,12 @@
     return L2_OK;
 }
 
-static int hook_write(l2_context_t *ctx, l2_channel_t *below, 
+static int hook_write(l2_context_t *ctx, l2_channel_t *below,
                       const char *buf, size_t buf_size)
-{
+    {
+    syslog(LOG_INFO, buf);
     return L2_OK;
-}
+    }
 
 static int hook_flush(l2_context_t *ctx, l2_channel_t *below)
 {

CVSTrac 2.0.1