comparison wikiserverlogging.conf @ 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 f029e42ecdec
children
comparison
equal deleted inserted replaced
6045:f029e42ecdec 6046:f7175dbb081e
4 4
5 [DEFAULT] 5 [DEFAULT]
6 logfile=moin.log 6 logfile=moin.log
7 7
8 [loggers] 8 [loggers]
9 keys=root,moin_debug,moin_abuse 9 keys=root,moin_debug
10 10
11 [logger_root] 11 [logger_root]
12 level=INFO 12 level=INFO
13 handlers=stderr 13 handlers=stderr
14 14
17 level=INFO 17 level=INFO
18 handlers=stderr 18 handlers=stderr
19 qualname=MoinMoin.auth 19 qualname=MoinMoin.auth
20 propagate=0 20 propagate=0
21 21
22 [logger_moin_abuse]
23 # adapt the next lines to your abuse logging needs:
24 level=INFO
25 handlers=abuse
26 qualname=MoinMoin.util.abuse
27 propagate=0
28
29 [handlers] 22 [handlers]
30 #keys=logfile,stderr 23 #keys=logfile,stderr
31 keys=stderr,abuse 24 keys=stderr
32 25
33 [handler_logfile] 26 [handler_logfile]
34 class=FileHandler 27 class=FileHandler
35 formatter=default 28 formatter=default
36 level=DEBUG 29 level=DEBUG
40 class=StreamHandler 33 class=StreamHandler
41 formatter=default 34 formatter=default
42 level=DEBUG 35 level=DEBUG
43 args=(sys.stderr, ) 36 args=(sys.stderr, )
44 37
45 [handler_abuse]
46 class=StreamHandler
47 formatter=abuse
48 level=DEBUG
49 args=(sys.stderr, )
50
51 [formatters] 38 [formatters]
52 keys=default,abuse 39 keys=default
53 40
54 [formatter_default] 41 [formatter_default]
55 format=%(asctime)s %(levelname)s %(name)s:%(lineno)d %(message)s 42 format=%(asctime)s %(levelname)s %(name)s:%(lineno)d %(message)s
56 datefmt= 43 datefmt=
57 class=logging.Formatter 44 class=logging.Formatter
58 45
59 [formatter_abuse]
60 format=%(asctime)s %(levelname)s %(message)s
61 datefmt=
62 class=logging.Formatter
63