view 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
line wrap: on
line source
    logging_defaults = {
        # Directory where logfiles will be created.
        # Make sure the running moin process has create/write rights there.
        'logdir': '/path/to/logdir',
        # Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
        'loglevel': 'INFO',
    }
    logging_config = """\
[loggers]
keys=root

[handlers]
keys=logfile

[formatters]
keys=logfile

[logger_root]
level=NOTSET
handlers=logfile

[handler_logfile]
class=FileHandler
formatter=logfile
level=%(loglevel)s
args=('%(logdir)s/moin.log', 'at')

[formatter_logfile]
format=%(asctime)s %(name)s %(levelname)s %(message)s
datefmt=
class=logging.Formatter
"""