view wiki/config/logging/abuse @ 6046:f7175dbb081e

abuse logging: add CHANGES entry, add example logging configuration, revert wikiserverlogging.conf reverted wikiserverlogging.conf to previous state (it is mainly used for debugging / developers, not so much in scenarios where we want abuse logging handled in special ways). see wiki/config/logging/abuse for an abuse logging example.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 06 Jun 2014 14:08:21 +0200
parents
children
line wrap: on
line source

[DEFAULT]
# Logfile to create.
# Make sure the running moin process has create/write rights there.
logfile=/tmp/abuse.log

[loggers]
keys=root,moin_abuse

[logger_root]
level=INFO
handlers=stderr

[logger_moin_abuse]
level=INFO
handlers=abuse
qualname=MoinMoin.util.abuse
propagate=0

[handlers]
keys=stderr,abuse

[handler_stderr]
class=StreamHandler
formatter=default
level=DEBUG
args=(sys.stderr, )

[handler_abuse]
class=FileHandler
formatter=abuse
level=DEBUG
args=('%(logfile)s', 'at')

[formatters]
keys=default,abuse

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

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