annotate wikiserverlogging.conf @ 6131:cb45a8287559

fix AttributeError in multifile action they only happened when first something did go wrong while copying or moving the files and it then failed to assemble the failure message.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 17:40:41 +0200
parents f7175dbb081e
children
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]
6046
f7175dbb081e abuse logging: add CHANGES entry, add example logging configuration, revert wikiserverlogging.conf
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 6045
diff changeset
9 keys=root,moin_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
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
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
22 [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
23 #keys=logfile,stderr
6046
f7175dbb081e abuse logging: add CHANGES entry, add example logging configuration, revert wikiserverlogging.conf
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 6045
diff changeset
24 keys=stderr
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
25
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
26 [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
27 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
28 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
29 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
30 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
31
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 [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
33 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
34 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
35 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
36 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
37
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 [formatters]
6046
f7175dbb081e abuse logging: add CHANGES entry, add example logging configuration, revert wikiserverlogging.conf
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 6045
diff changeset
39 keys=default
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
40
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]
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
42 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
43 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
44 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
45