diff wiki/config/logging/stderr @ 3109:4cd113328476

make logging not crash, more config samples
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 24 Feb 2008 12:50:54 +0100
parents
children 79f850129782
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wiki/config/logging/stderr	Sun Feb 24 12:50:54 2008 +0100
@@ -0,0 +1,31 @@
+    logging_defaults = {
+        # Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
+        'loglevel': 'INFO',
+    }
+    logging_config = """\
+[loggers]
+keys=root
+
+[handlers]
+keys=stderr
+
+[formatters]
+keys=screen
+
+[logger_root]
+level=NOTSET
+handlers=stderr
+
+[handler_stderr]
+class=StreamHandler
+formatter=screen
+level=%(loglevel)s
+args=(sys.stderr, )
+
+[formatter_screen]
+format=%(asctime)s %(name)s %(levelname)s %(message)s
+datefmt=
+class=logging.Formatter
+"""
+
+