comparison 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
comparison
equal deleted inserted replaced
3014:dc970f2d146c 3015:8d691fbdc929
19 19
20 @copyright: 2007 by MoinMoin:ThomasWaldmann 20 @copyright: 2007 by MoinMoin:ThomasWaldmann
21 @license: GNU GPL, see COPYING for details. 21 @license: GNU GPL, see COPYING for details.
22 """ 22 """
23 23
24 # System path configuration
25 import sys 24 import sys
26 25
27 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX 26 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
28 # or if you did not use setup.py. 27 # or if you did not use setup.py.
29 ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages') 28 ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
33 32
34 # Path of the directory where wikiconfig.py is located. 33 # Path of the directory where wikiconfig.py is located.
35 # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP. 34 # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
36 sys.path.insert(0, '/path/to/wikiconfig') 35 sys.path.insert(0, '/path/to/wikiconfig')
37 36
38 from MoinMoin.server.server_wsgi import moinmoinApp as application 37 import logging
39 38
39 from MoinMoin.server.server_wsgi import WsgiConfig, moinmoinApp
40
41 class Config(WsgiConfig):
42 logPath = 'moin.log' # adapt this to your needs!
43 #loglevel_file = logging.INFO # adapt this to your needs!
44
45 config = Config() # MUST create an instance to init logging!
46
47 application = moinmoinApp
48