comparison wiki/server/moin.wsgi @ 3505:cd43bbf56c33

logging: removed logging to ./moin.log from fallback config, better docs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Apr 2008 18:47:57 +0200
parents 79f850129782
children fc2f05f2b0bd
comparison
equal deleted inserted replaced
3504:7ee94ad36708 3505:cd43bbf56c33
15 # umask=0007 does not work for mod_wsgi 1.0rc1, but will work later 15 # umask=0007 does not work for mod_wsgi 1.0rc1, but will work later
16 16
17 # use the daemons we defined above to process requests! 17 # use the daemons we defined above to process requests!
18 WSGIProcessGroup daemonname 18 WSGIProcessGroup daemonname
19 19
20 @copyright: 2007 by MoinMoin:ThomasWaldmann 20 @copyright: 2008 by MoinMoin:ThomasWaldmann
21 @license: GNU GPL, see COPYING for details. 21 @license: GNU GPL, see COPYING for details.
22 """ 22 """
23 23
24 import sys 24 import sys
25 25
33 # Path of the directory where wikiconfig.py is located. 33 # Path of the directory where wikiconfig.py is located.
34 # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP. 34 # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
35 sys.path.insert(0, '/path/to/wikiconfig') 35 sys.path.insert(0, '/path/to/wikiconfig')
36 36
37 from MoinMoin import log 37 from MoinMoin import log
38 log.load_config('.../wiki/config/logging/logfile') # XXX fix path 38 log.load_config('wiki/config/logging/logfile') # XXX please fix this path!
39 39
40 from MoinMoin.server.server_wsgi import WsgiConfig, moinmoinApp 40 from MoinMoin.server.server_wsgi import WsgiConfig, moinmoinApp
41 41
42 class Config(WsgiConfig): 42 class Config(WsgiConfig):
43 pass 43 pass
44 44
45 config = Config() # MUST create an instance to init logging! 45 config = Config()
46 46
47 application = moinmoinApp 47 application = moinmoinApp
48 48