comparison wiki/config/logging/logfile @ 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 80e1a910a2f1
children 79f850129782
comparison
equal deleted inserted replaced
3108:2572688e031a 3109:4cd113328476
1 logging_defaults = { 1 logging_defaults = {
2 # Directory where logfiles will be created. 2 # Directory where logfiles will be created.
3 # Make sure the running moin process has create/write rights there. 3 # Make sure the running moin process has create/write rights there.
4 'logdir': '/path/to/logdir', 4 'logdir': '/path/to/logdir',
5 # Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL 5 # Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
6 'loglevel': 'DEBUG', 6 'loglevel': 'INFO',
7 } 7 }
8 logging_config = """\ 8 logging_config = """\
9 [loggers] 9 [loggers]
10 keys=root 10 keys=root
11 11
18 [logger_root] 18 [logger_root]
19 level=NOTSET 19 level=NOTSET
20 handlers=logfile 20 handlers=logfile
21 21
22 [handler_logfile] 22 [handler_logfile]
23 class=StreamHandler 23 class=FileHandler
24 formatter=logfile 24 formatter=logfile
25 level=%(loglevel)s 25 level=%(loglevel)s
26 args=('%(logdir)s/moin.log', 'at') 26 args=('%(logdir)s/moin.log', 'at')
27 27
28 [formatter_logfile] 28 [formatter_logfile]