Add template logging configuration file.
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Thu, 20 Nov 2008 19:44:51 +0000 (20:44 +0100)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Thu, 20 Nov 2008 19:44:51 +0000 (20:44 +0100)
conf/logging.conf.tmpl [new file with mode: 0644]

diff --git a/conf/logging.conf.tmpl b/conf/logging.conf.tmpl
new file mode 100644 (file)
index 0000000..6cfbfe7
--- /dev/null
@@ -0,0 +1,31 @@
+# Copy this file to logging.conf and update the logfile path below.
+
+[DEFAULT]
+logfile=/tmp/moin.log
+
+# Default loglevel, to adjust verbosity: DEBUG, INFO, WARNING, ERROR, CRITICAL
+loglevel=INFO
+
+[loggers]
+keys=root
+
+[handlers]
+keys=logfile
+
+[formatters]
+keys=logfile
+
+[logger_root]
+level=%(loglevel)s
+handlers=logfile
+
+[handler_logfile]
+class=FileHandler
+formatter=logfile
+level=%(loglevel)s
+args=('%(logfile)s', 'at')
+
+[formatter_logfile]
+format=%(asctime)s %(name)s %(levelname)s %(message)s
+datefmt=
+class=logging.Formatter