|Version 1 (modified by mitsuhiko, 7 years ago) (diff)|
Python Trac Log Handler
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.
If you have any issues, create a new ticket.
Download the zipped source from here.
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.