From ed5e32167ba8cf13d1d59ee885fb353b08a26b09 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 20 Nov 2008 20:44:51 +0100 Subject: [PATCH] Add template logging configuration file. --- conf/logging.conf.tmpl | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 conf/logging.conf.tmpl 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 -- 2.30.2