diff wikiserverlogging.conf @ 3576:08a8965162fe

rename ./moin.py to wikiserver.py, add wikiserverlogging.conf to configure its logging
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 11 May 2008 18:35:14 +0200
parents
children 9cb46c423384
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wikiserverlogging.conf	Sun May 11 18:35:14 2008 +0200
@@ -0,0 +1,44 @@
+# 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
+
+[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
+
+[handlers]
+keys=logfile,stderr
+
+[handler_logfile]
+class=FileHandler
+formatter=default
+level=DEBUG
+args=('%(logfile)s', 'at')
+
+[handler_stderr]
+class=StreamHandler
+formatter=default
+level=INFO
+args=(sys.stderr, )
+
+[formatters]
+keys=default
+
+[formatter_default]
+format=%(asctime)s %(name)s %(levelname)s %(message)s
+datefmt=
+class=logging.Formatter
+