]> arthur.barton.de Git - netatalk.git/blobdiff - bin/misc/logger_test.c
Merge remote-tracking branch 'origin/develop' into spotlight
[netatalk.git] / bin / misc / logger_test.c
index a968cce3ea802930b2b91e946f3af88eb191e348..cf9321142371817b50d47adab5e42f0542e377a2 100644 (file)
@@ -1,6 +1,24 @@
+/*
+  Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+*/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
+#include <stdbool.h>
 
-#include <atalk/boolean.h>
 #include <atalk/logger.h>
 
 int main(int argc, char *argv[])
@@ -25,11 +43,11 @@ int main(int argc, char *argv[])
 #endif
   /* filelog testing */
 
-  setuplog("DSI log_maxdebug test.log");
+  setuplog("DSI:maxdebug", "test.log");
   LOG(log_info, logtype_dsi, "This should log.");
   LOG(log_error, logtype_default, "This should not log.");
 
-  setuplog("Default log_debug test.log");
+  setuplog("Default:debug", "test.log");
   LOG(log_debug, logtype_default, "This should log.");
   LOG(log_maxdebug, logtype_default, "This should not log.");