From: Matthijs Kooijman Date: Thu, 20 Nov 2008 19:44:51 +0000 (+0100) Subject: Add template logging configuration file. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=ed5e32167ba8cf13d1d59ee885fb353b08a26b09;p=matthijs%2Fprojects%2Fwipi.git Add template logging configuration file. --- diff --git a/conf/logging.conf.tmpl b/conf/logging.conf.tmpl new file mode 100644 index 0000000..6cfbfe7 --- /dev/null +++ b/conf/logging.conf.tmpl @@ -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