=============================================================
Autologging --- easier logging and tracing for Python classes
=============================================================
:Release: |release|
.. image:: https://img.shields.io/badge/pypi-v1.0.1-orange.svg
:alt: Version 1.0.1
:target: https://pypi.python.org/pypi/Autologging/
.. image:: https://img.shields.io/badge/python-2.7,_3.3,_3.4,_3.5-blue.svg
:alt: Python 2.7, 3.3+
:target: https://www.python.org/
.. image:: https://img.shields.io/badge/jython-2.7.0-0066cc.svg
:alt: Jython 2.7.0
:target: http://www.jython.org/
.. image:: https://img.shields.io/badge/ironpython-2.7.5-0066cc.svg
:alt: IronPython 2.7.5
:target: http://ironpython.net/
.. image:: https://img.shields.io/badge/license-MIT-lightgrey.svg
:alt: MIT License
:target: https://github.com/mzipay/Autologging/blob/master/LICENSE.txt
Autologging eliminates boilerplate logging setup code and tracing code,
and provides a means to separate application logging from program flow
and data tracing.
Python modules that make use of Autologging are cleaner, leaner, and
more resilient to changes that would otherwise require updating tracing
statements.
Autologging allows for tracing to be configured (and controlled)
independently from application logging. Toggle tracing on/off, write
trace log records to a separate log, and use different formatting for
trace log entries - all via standard Python logging facilities, and
without affecting your application logging.
**Python 2.7 and Python 3.3+ are supported using the same codebase.**
All examples given on this site use Python 3 syntax.
.. versionadded:: 1.0.1
Autologging is now officially tested and working under `Jython
`_, `IronPython `_,
`PyPy `_, and `Stackless Python
`_.
Autologging exposes two decorators (:func:`autologging.logged`,
:func:`autologging.traced`) and a custom log level
(:attr:`autologging.TRACE`).
Table of Contents
-----------------
.. toctree::
:maxdepth: 2
intro
autologging
examples
internals
Download and Install
--------------------
.. image:: https://img.shields.io/badge/wheel-yes-brightgreen.svg
:alt: Wheel available
:target: https://pypi.python.org/pypi/Autologging/#downloads
The easiest way to install Autologging is to use `pip
`_::
$ pip install Autologging
To install from source, clone or fork the repository::
$ git clone https://github.com/mzipay/Autologging.git
Alternatively, download and extract a source .zip or .tar.gz archive
from https://github.com/mzipay/Autologging/releases or
https://pypi.python.org/pypi/Autologging.
Run the test suite and install the ``autologging`` module (make sure you
have `setuptools `_
installed!)::
$ cd Autologging
$ python setup.py test
$ python setup.py install
You can also install from one of the available binary packages
available at https://pypi.python.org/pypi/Autologging or
https://sourceforge.net/projects/autologging/files/.
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`