Python Trac Log Handler
Description
This module allows you to tell the standard python stdlib logger to log into a trac of your choice. For example you can configure your web application to use the trac log handler and report any exceptions or errors that occur while processing the request into your trac.
Bugs/Feature Requests
Existing bugs and feature requests for PythonTracLogHandlerIntegration are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from here.
Source
You can check out PythonTracLogHandlerIntegration from the pocoo sandbox using Mercurial, or browse the source with hgweb.
Example
import trachandler import logging handler = trachandler.TracHandler('http://example.org/trac') logging.getLogger().addHandler(handler)
For more details have a look at the signature of the TracHandler constructor.
Author/Contributors
Author: mitsuhiko
Contributors: