view 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 source
    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
"""