]> mj.ucw.cz Git - libucw.git/commitdiff
Logging: Added a toy main() and plugged in the Makefile.
authorMartin Mares <mj@ucw.cz>
Thu, 12 Feb 2009 22:57:49 +0000 (23:57 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 12 Feb 2009 22:57:49 +0000 (23:57 +0100)
ucw/Makefile
ucw/logstream.c

index 55b274a4af9b4a0cb309feefbf36bfd4d3df338f..4e477b86da8ddf2b024ac32692e3ddc1ec7748ee 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile for the UCW Library (c) 1997--2008 Martin Mares <mj@ucw.cz>
+# Makefile for the UCW Library (c) 1997--2009 Martin Mares <mj@ucw.cz>
 
 DIRS+=ucw
 LIBUCW=$(o)/ucw/libucw.pc
@@ -12,7 +12,7 @@ LIBUCW_MODS= \
        alloc alloc_str realloc bigalloc mempool mempool-str mempool-fmt eltpool \
        mmap partmap hashfunc \
        slists simple-lists bitsig \
-       log log-file proctitle \
+       log log-file logstream proctitle \
        conf-alloc conf-dump conf-input conf-intr conf-journal conf-parse conf-section \
        ipaccess \
        profile \
index 766faedbff919a2c164f32d7b1e1bf76ee96aadf..d12688c0cd4813e690f2a331030786e853ee5af2 100644 (file)
@@ -516,3 +516,13 @@ struct log_stream *ls_syslog_new(int facility, const char *name)
   ls->close = ls_syslog_close;
   return ls;
 }
+
+#ifdef TEST
+
+int main(void)
+{
+  ls_msg(L_INFO, "Brum!");
+  return 0;
+}
+
+#endif