annotate 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
rev   line source
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
1 # This is the standalone wikiserver logging configuration.
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
2 # It can be easily modified to help when debugging, see the comments.
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
3 # Available loglevels, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
4
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
5 [DEFAULT]
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
6 logfile=moin.log
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
7
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
8 [loggers]
6045
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
9 keys=root,moin_debug,moin_abuse
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
10
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
11 [logger_root]
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 level=INFO
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
13 handlers=stderr
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
14
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
15 [logger_moin_debug]
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
16 # adapt the next lines to your debugging needs:
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17 level=INFO
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
18 handlers=stderr
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
19 qualname=MoinMoin.auth
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
20 propagate=0
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
21
6045
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
22 [logger_moin_abuse]
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
23 # adapt the next lines to your abuse logging needs:
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
24 level=INFO
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
25 handlers=abuse
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
26 qualname=MoinMoin.util.abuse
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
27 propagate=0
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
28
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
29 [handlers]
3579
ff4afe930cb2 logging configuration: you can use MOINLOGGINGCONF env var now to override from where your logging conf is read, fix wikiserverlogging.conf to not create empty moin.log files
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3578
diff changeset
30 #keys=logfile,stderr
6045
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
31 keys=stderr,abuse
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
32
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
33 [handler_logfile]
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
34 class=FileHandler
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
35 formatter=default
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
36 level=DEBUG
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
37 args=('%(logfile)s', 'at')
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
38
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
39 [handler_stderr]
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
40 class=StreamHandler
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
41 formatter=default
3578
9cb46c423384 logging: change the stderr handler to log at DEBUG level (we control the logging with the logger's level)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3576
diff changeset
42 level=DEBUG
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
43 args=(sys.stderr, )
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
44
6045
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
45 [handler_abuse]
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
46 class=StreamHandler
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
47 formatter=abuse
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
48 level=DEBUG
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
49 args=(sys.stderr, )
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
50
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
51 [formatters]
6045
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
52 keys=default,abuse
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
53
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
54 [formatter_default]
3579
ff4afe930cb2 logging configuration: you can use MOINLOGGINGCONF env var now to override from where your logging conf is read, fix wikiserverlogging.conf to not create empty moin.log files
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3578
diff changeset
55 format=%(asctime)s %(levelname)s %(name)s:%(lineno)d %(message)s
3576
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
56 datefmt=
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
57 class=logging.Formatter
08a8965162fe rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
58
6045
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
59 [formatter_abuse]
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
60 format=%(asctime)s %(levelname)s %(message)s
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
61 datefmt=
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
62 class=logging.Formatter
f029e42ecdec add logging for login to detect potential abuse
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3579
diff changeset
63