view wiki/config/logging/README @ 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 6866e80e207b
line wrap: on
line source
In this directory is a collection of pre-made logging configuration files.

Typically, your server adaptor script (e.g. moin.cgi) will have this:

from MoinMoin import log
log.load_config('wiki/config/logging/logfile') # XXX please fix this path!

You have to fix that path to use a logging configuration matching your
needs (we provide some examples in the path given there, it is relative to
the uncompressed moin distribution archive - if you use some moin package,
you maybe find it under /usr/share/moin/).

It is likely that you also have to edit the sample logging configurations
we provide (e.g. to fix the logfile location).

If you don't configure logging using those lines, moin will use some built-in
logging configuration (which might be correct for some cases, but incorrect
for some other cases, so be careful!).

CGI
---
You need to edit the moin.cgi that your webserver runs.

CGI / Apache: use the stderr configuration, stuff will go to apache error.log
CGI / IIS: use the logfile configuration and edit the logfile path

You can make very flexible and powerful logging configurations using this
mechanism, for more details see:

http://www.python.org/doc/lib/logging-config-fileformat.html