[mod_python] SQLAlchemy logging with mod_python

Graham Dumpleton grahamd at dscpl.com.au
Mon Oct 16 18:01:43 EDT 2006


Alex Greif wrote ..
> Hi,
> is there a possibility to redirect sqlaachemy log messages to the
> error_log of mod_python?

Looking at the SQLAlchemy source code, it appears to using the Python
logging module in some way. Thus it would appear that you can probably
install a logging module handler which forwards the logged messages to
the apache.log_error() function.

There was a prior post on the mailing list about this:

  http://www.modpython.org/pipermail/mod_python/2005-October/019295.html

This may or may not help.

Graham


More information about the Mod_python mailing list