[Mpuls-commits] r4888 - base/trunk/mpulsweb.egg-info

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 8 10:54:27 CEST 2011


Author: bricks
Date: 2011-04-08 10:54:25 +0200 (Fri, 08 Apr 2011)
New Revision: 4888

Modified:
   base/trunk/mpulsweb.egg-info/paste_deploy_config.ini_tmpl
Log:
update template for logging with apache mod_wsgi


Modified: base/trunk/mpulsweb.egg-info/paste_deploy_config.ini_tmpl
===================================================================
--- base/trunk/mpulsweb.egg-info/paste_deploy_config.ini_tmpl	2011-04-07 14:28:26 UTC (rev 4887)
+++ base/trunk/mpulsweb.egg-info/paste_deploy_config.ini_tmpl	2011-04-08 08:54:25 UTC (rev 4888)
@@ -84,29 +84,47 @@
 
 # Logging configuration
 [loggers]
-keys = root, mpulsweb
+keys = root, mpulsweb, instanceapp, routes
 
 [handlers]
-keys = console, file
+keys = console, wsgilog, file
 
 [formatters]
-keys = generic
+keys = generic, message
 
 [logger_root]
 level = INFO
 handlers = console
+# use wsgi handler for Apache mod_wsgi
+#handlers = wsgilog
 
+[logger_routes]
+level = WARNING
+handlers =
+qualname = mpulsweb.config.routing
+
 [logger_mpulsweb]
 level = DEBUG
 handlers =
 qualname = mpulsweb
 
+[logger_instanceapp]
+level = WARNING
+handlers =
+qualname = %(mpuls.app.instance)s
+
 [handler_console]
 class = StreamHandler
 args = (sys.stderr,)
 level = NOTSET
 formatter = generic
 
+[handler_wsgilog]
+class = pylons.log.WSGIErrorsHandler
+args = ()
+level = INFO
+formatter = message
+
 [handler_file]
 class = logging.handlers.RotatingFileHandler
 # Third parameter in args is maximum size of the log file in bytes.
@@ -120,3 +138,7 @@
 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
 datefmt = %H:%M:%S
 
+[formatter_message]
+# strip time for logging in apache mod_wsgi
+format = %(levelname)-5.5s [%(name)s] %(message)s
+datefmt = %H:%M:%S



More information about the Mpuls-commits mailing list