djangosnippets.org: Latest snippets posted by adroffnerhttps://djangosnippets.org/users/adroffner/2008-08-10T17:56:33.414768-05:00adroffnerMODPYTHON Sample Site Logging
2008-08-10T17:56:33.414768-05:00adroffnerhttps://djangosnippets.org/snippets/960/<p>This sample site_logging.py module uses the <a href="http://www.djangosnippets.org/snippets/627/">MODPYTHON Logging snippet</a>. It assigns the ApacheLogHandler class to the main logging object, when Django is run inside MODPYTHON.</p>
<p>You must have the MODPYTHON Logging snippet, and name it modpython_logging.py for this to work. Apache will write to virtual host-specific logs only with …</p>
Freely redistributableMODPYTHON logging
2008-03-04T15:47:42.609251-06:00adroffnerhttps://djangosnippets.org/snippets/627/<p>A MODPYTHON Apache Log Handler</p>
<p>This module provides a logging Handler class to a MODPYTHON Apache server. Python's standard <a href="http://www.python.org/doc/2.5/lib/module-logging.html">logging API</a> explains how to <a href="http://www.python.org/doc/2.5/lib/multiple-destinations.html">use a handler</a>.</p>
<p>The handler, by default, writes entries to the Apache error_log using the standard Python logging API.</p>
<p>VIRTUAL HOSTS (Python 2.5)</p>
<p>This handler …</p>
Freely redistributable