annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3109
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
1 logging_defaults = {
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
2 # Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
3 'loglevel': 'INFO',
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
4 }
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
5 logging_config = """\
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
6 [loggers]
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
7 keys=root
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
8
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
9 [handlers]
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
10 keys=stderr
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
11
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 [formatters]
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
13 keys=screen
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
14
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
15 [logger_root]
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
16 level=NOTSET
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17 handlers=stderr
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
18
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
19 [handler_stderr]
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
20 class=StreamHandler
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
21 formatter=screen
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
22 level=%(loglevel)s
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
23 args=(sys.stderr, )
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
24
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
25 [formatter_screen]
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
26 format=%(asctime)s %(name)s %(levelname)s %(message)s
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
27 datefmt=
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
28 class=logging.Formatter
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
29 """
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
30
4cd113328476 make logging not crash, more config samples
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
31