comparison 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
comparison
equal deleted inserted replaced
3108:2572688e031a 3109:4cd113328476
1 logging_defaults = {
2 # Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
3 'loglevel': 'INFO',
4 }
5 logging_config = """\
6 [loggers]
7 keys=root
8
9 [handlers]
10 keys=stderr
11
12 [formatters]
13 keys=screen
14
15 [logger_root]
16 level=NOTSET
17 handlers=stderr
18
19 [handler_stderr]
20 class=StreamHandler
21 formatter=screen
22 level=%(loglevel)s
23 args=(sys.stderr, )
24
25 [formatter_screen]
26 format=%(asctime)s %(name)s %(levelname)s %(message)s
27 datefmt=
28 class=logging.Formatter
29 """
30
31