comparison wiki/server/mointwisted.py @ 3105:80e1a910a2f1

make logging more configurable and flexible, packages/modules shall call MoinMoin.server.getLogger
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 21:43:47 +0100
parents 8d21b13482e3
children fc2f05f2b0bd
comparison
equal deleted inserted replaced
3102:a78bf6977df8 3105:80e1a910a2f1
30 from MoinMoin.server.server_twisted import TwistedConfig, makeApp 30 from MoinMoin.server.server_twisted import TwistedConfig, makeApp
31 31
32 32
33 class Config(TwistedConfig): 33 class Config(TwistedConfig):
34 34
35 # Server name 35 # Server name - used to create .pid and .prof files
36 # Used to create .log, .pid and .prof files 36 name = 'moin'
37 name = 'mointwisted'
38 37
39 # Path to moin shared files (default '/usr/share/moin/wiki/htdocs') 38 # Path to moin shared files (default '/usr/share/moin/wiki/htdocs')
40 docs = '/usr/share/moin/htdocs' 39 docs = '/usr/share/moin/htdocs'
41 40
42 # URL prefix for the static stuff (used to access stuff in docs) - you 41 # URL prefix for the static stuff (used to access stuff in docs) - you
70 # Leaving this as None will have no Apache compatible log file. Apache 69 # Leaving this as None will have no Apache compatible log file. Apache
71 # compatible logfiles are useful because there are quite a few programs 70 # compatible logfiles are useful because there are quite a few programs
72 # which analyze them and display statistics. 71 # which analyze them and display statistics.
73 ## logPath_twisted = 'mointwisted.log' 72 ## logPath_twisted = 'mointwisted.log'
74 73
75 # moin log file
76 ## logPath = 'moin.log'
77
78 # Memory profile (default commented) 74 # Memory profile (default commented)
79 # Useful only if you are a developer or interested in moin memory usage 75 # Useful only if you are a developer or interested in moin memory usage
80 ## from MoinMoin.util.profile import TwistedProfiler 76 ## from MoinMoin.util.profile import TwistedProfiler
81 ## memoryProfile = TwistedProfiler('mointwisted', 77 ## memoryProfile = TwistedProfiler('mointwisted',
82 ## requestsPerSample=100, 78 ## requestsPerSample=100,