wiki:PythonTracLogHandlerIntegration

Version 4 (modified by mitsuhiko, 7 years ago) (diff)

--

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.

Recent Changes

[3096] by mitsuhiko on 2008-01-18 15:49:22
New hack PythonTracLogHandlerIntegration, created by mitsuhiko

Author/Contributors

Author: mitsuhiko
Contributors: