ANN: Logging Module v0.4.2 released

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Apr 11 11:22:56 EDT 2002


A new version of the proposed Python standard logging module (as per
PEP 282) has been released. You can get all the information from

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

There are "download" and "recent changes" links at the top of that
page. The new stuff includes some bug fixes for the Tkinter GUI
configurator, one significant performance optimization, a bug in the
logging receiver example application, an example showing writing
logging records to an RDBMS and changes to the base Filter class to
add some useful functionality.

As always, your feedback is most welcome (especially bug reports,
patches and suggestions for improvement).

Cheers

Vinay Sajip
Red Dove Consultants Ltd.

Changes since the last version:
=================================
Bug fix fileConfig() - setup of MemoryHandler target and errors when
loggers have no handlers set or handlers have no formatters set
logconf.py - seems to hang if window closed when combo dropdown is
showing - added code to close popup on exit
Some tweaks to _srcfile computation (normpath added)
findCaller() optimized, now a lot faster!
Logger.removeHandler now closes the handler before removing it
fileConfig() removes existing handlers before adding the new set, to
avoid memory leakage when repeated calls are made
Fixed logrecv.py bug which hogged CPU time when TCP connection was
closed from the client
Added log_test14.py to demonstrate/test a DBHandler which writes
logging records into an RDBMS using the Python Database API 2.0 (to
run, you need something which supports this already installed - I
tested with
mxODBC)
Made getLogger name argument optional - returns root logger if omitted
Altered Filter to take a string initializer, filtering a sub-hierarchy
rooted at a particular point (idea from Denis S. Otkidach).
Added log_test15.py to test Filter initializer
Minor docstring changes



More information about the Python-list mailing list