ANN: Logging Module for Python conforming to PEP 282, first release

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Mar 14 21:58:42 EST 2002


I've just made available the first release of a logging module for
Python. It broadly conforms to PEP 282(see
http://python.sourceforge.net/peps/pep-0282.html - though that is
still a work in progress).

The distribution contains simple examples such as logging to console,
file and streaming sockets. The simplest example might be

# -- app.py ---------------------
import logging

logging.info("Starting...")
logging.warn("Nothing to do!")
logging.info("Done...")
# -- end ------------------------
and logging levels DEBUG, INFO, WARN, ERROR, and FATAL are supported.
Handling of exception information (tracebacks) is supported. Plus a
whole lot more! Levels, Loggers, Handlers, Formatters, Filters...

The documentation can be found at

http://www.red-dove.com/python_logging.html

Development status is pre-alpha but it has been tried out (I won't say
"tested" :-)) on 1.5.2 and 2.1.1, Windows platforms.

I'm dying to get feedback so please try it out! You can email me via
the link on the documentation page, or give feedback via comp.lang.py
if you deem it appropriate.

Thanks & Regards


Vinay Sajip
Red Dove Consultants Ltd.



More information about the Python-list mailing list