OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_test.c versions 1.49 and 1.50
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_test.c 1.49 -> 1.50

--- l2_test.c    2002/01/02 17:07:38     1.49
+++ l2_test.c    2002/07/30 19:08:25     1.50
@@ -1,10 +1,10 @@
 /*
-**  L2 - OSSP Logging Library
+**  OSSP l2 - Logging Library
 **  Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/)
 **  Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)
 **
 **  This file is part of OSSP L2, a flexible logging library which
-**  can be found at http://www.ossp.org/pkg/l2/.
+**  can be found at http://www.ossp.org/pkg/lib/l2/.
 **
 **  Permission to use, copy, modify, and distribute this software for
 **  any purpose with or without fee is hereby granted, provided that
@@ -89,9 +89,9 @@
            "  -> prefix(prefix=\"[%d-%m-%Y/%H:%M:%S] %L test[%P]: \", timezone=local)"
            "     -> buffer(size=800)"
 /*           "     -> buffer(size=800, timer=on)"*/
-           "        -> file(path=l2_test.log, append=1, perm=420) ;"
+           "        -> file(path=l2_test.log, append=1, perm=0644) ;"
            "  syslog(ident=L2-Test, facility=user, "
-           "         remotehost=en1, logpid=1, target=remote)"
+           "         remotehost=localhost, logpid=1, target=remote)"
            "}";
     fprintf(stderr, "configuring: %s\n", spec);
     if ((rv = l2_spec(&ch, env, "%s", spec)) != L2_OK)
@@ -130,7 +130,7 @@
     /* create syslog channel */
     if ((rv = l2_channel_create(&chSyslog, env, "syslog")) != L2_OK)
         die(env, rv, "failed to create syslog channel");
-    if ((rv = l2_channel_configure(chSyslog, "ident=L2-Test, facility=user, target=remote, remotehost=en1, logpid=1")) != L2_OK)
+    if ((rv = l2_channel_configure(chSyslog, "ident=L2-Test, facility=user, target=remote, remotehost=localhost, logpid=1")) != L2_OK)
         die(env, rv, "failed to configure syslog channel");
     if ((rv = l2_channel_levels(chSyslog, L2_LEVEL_UPTO(L2_LEVEL_ERROR), L2_LEVEL_ALL)) != L2_OK)
         die(env, rv, "failed to level of syslog channel");
@@ -138,7 +138,7 @@
     /* create smtp channel */
     if ((rv = l2_channel_create(&chSmtp, env, "smtp")) != L2_OK)
         die(env, rv, "failed to create smtp channel");
-    if ((rv = l2_channel_configure(chSmtp, "rcpt=rse@engelschall.com, host=en1, port=25")) != L2_OK)
+    if ((rv = l2_channel_configure(chSmtp, "rcpt=l2@localhost, host=localhost, port=25")) != L2_OK)
         die(env, rv, "failed to configure smtp channel");
     if ((rv = l2_channel_levels(chSmtp, L2_LEVEL_UPTO(L2_LEVEL_PANIC), L2_LEVEL_ALL)) != L2_OK)
         die(env, rv, "failed to level of smtp channel");

CVSTrac 2.0.1