view wiki/config/logging/logfile @ 4500:b1f78aafc581

logging sample config: use same logging format as for standalone, module:lineno should be enough
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 29 Jan 2009 09:34:48 +0100
parents 6a6405b75dad
children
line wrap: on
line source
[DEFAULT]
# Logfile to create.
# Make sure the running moin process has create/write rights there.
logfile=/tmp/moin.log

# Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
loglevel=INFO

[loggers]
keys=root

[handlers]
keys=logfile

[formatters]
keys=logfile

[logger_root]
level=%(loglevel)s
handlers=logfile

[handler_logfile]
class=FileHandler
formatter=logfile
level=%(loglevel)s
args=('%(logfile)s', 'at')

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