Autologging — easier logging and tracing for Python classes

Release:0.4.0

The autologging module defines two decorators and a metaclass factory that make logging easier to use with classes.

Python 2.7 and Python 3.2+ are supported using the same codebase. All examples given on this site use Python 3 syntax.

Download and Install

If you download or clone the source, the test suite can be run from the project root directory in either of the following ways:

python -m unittest test.suite

or:

python setup.py test

There are also a number of doctest tests embedded within Autologging’s docstrings (written using Python 3 syntax). If you are running Python 3.2+, you can run the doctests like so:

python -m doctest autologging.py

Indices and tables