diff wiki/server/moin.wsgi @ 3015:8d691fbdc929

WSGI: initialize logging (untested) (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 20:06:00 +0100
parents 70f2d676920b
children 806cf4814612
line wrap: on
line diff
--- a/wiki/server/moin.wsgi	Sun Jan 06 20:00:40 2008 +0100
+++ b/wiki/server/moin.wsgi	Sun Jan 06 20:06:00 2008 +0100
@@ -21,7 +21,6 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-# System path configuration
 import sys
 
 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
@@ -35,5 +34,15 @@
 # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
 sys.path.insert(0, '/path/to/wikiconfig')
 
-from MoinMoin.server.server_wsgi import moinmoinApp as application
+import logging
 
+from MoinMoin.server.server_wsgi import WsgiConfig, moinmoinApp
+
+class Config(WsgiConfig):
+    logPath = 'moin.log' # adapt this to your needs!
+    #loglevel_file = logging.INFO # adapt this to your needs!
+
+config = Config() # MUST create an instance to init logging!
+
+application = moinmoinApp
+