--- l2_test.c 2003/01/06 11:41:52 1.51
+++ l2_test.c 2003/01/27 16:01:35 1.52
@@ -89,10 +89,11 @@
" filter(regex=hecking, negate=0)"
" -> 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=0644) ;"
+/*
" syslog(ident=L2-Test, facility=user, "
" remotehost=localhost, logpid=1, target=remote)"
+*/
"}";
fprintf(stderr, "configuring: %s\n", spec);
if ((rv = l2_spec(&ch, env, "%s", spec)) != L2_OK)
@@ -158,11 +159,11 @@
/* perform a few log operations */
if ((rv = l2_channel_log(ch, L2_LEVEL_PANIC, "1: Checking localhost %s %{myparm}k <%{text}S><%{hex}S><%{base64}S>\n", "foo", 12345, "foo\1bar", 7, "foo\1bar", 7, "foo\1bar", 7)) != L2_OK)
die(env, rv, "failed to log message #1 to channel");
- if ((rv = l2_channel_log(ch, L2_LEVEL_PANIC, "2: Shecking\n")) != L2_OK)
+ if ((rv = l2_channel_log(ch, L2_LEVEL_PANIC, "2: Checking\n")) != L2_OK)
die(env, rv, "failed to log message #2 to channel");
if ((rv = l2_channel_log(ch, L2_LEVEL_PANIC, "3: Checking localhost %s %{myparm}k <%{text}S><%{hex}S><%{base64}S>\n", "foo", 12345, "foo\1bar", 7, "foo\1bar", 7, "foo\1bar", 7)) != L2_OK)
die(env, rv, "failed to log message #3 to channel");
- if ((rv = l2_channel_log(ch, L2_LEVEL_PANIC, "4: Shecking\n")) != L2_OK)
+ if ((rv = l2_channel_log(ch, L2_LEVEL_PANIC, "4: Checking\n")) != L2_OK)
die(env, rv, "failed to log message #4 to channel");
/* destroy channel tree */
|