view wikiserverlogging.conf @ 6045:f029e42ecdec

add logging for login to detect potential abuse
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 06 Jun 2014 13:33:16 +0200
parents ff4afe930cb2
children f7175dbb081e
line wrap: on
line source
# This is the standalone wikiserver logging configuration.
# It can be easily modified to help when debugging, see the comments.
# Available loglevels, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL

[DEFAULT]
logfile=moin.log

[loggers]
keys=root,moin_debug,moin_abuse

[logger_root]
level=INFO
handlers=stderr

[logger_moin_debug]
# adapt the next lines to your debugging needs:
level=INFO
handlers=stderr
qualname=MoinMoin.auth
propagate=0

[logger_moin_abuse]
# adapt the next lines to your abuse logging needs:
level=INFO
handlers=abuse
qualname=MoinMoin.util.abuse
propagate=0

[handlers]
#keys=logfile,stderr
keys=stderr,abuse

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

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

[handler_abuse]
class=StreamHandler
formatter=abuse
level=DEBUG
args=(sys.stderr, )

[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