ANN: Logging Module v0.4 released

Vinay Sajip vinay_sajip at yahoo.co.uk
Wed Mar 20 20:54:53 EST 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 is a download link at the top of that page, and there is quite a
lot of new stuff including syslog and NT event log support, support
for user defined levels and more!

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:
=================================
Added level filtering for handlers.
Return root logger if no name specified in getLogger.
Added distutils setup.py script.
Added formatter initialization in Handler.__init__.
Tidied up docstrings.
Added removeHandler to Logger.
Added removeFilter to Logger and Handler.
logrecv.py modified to keep connection alive until client closes it.
SocketHandler modified to not reset connection after each logging
event.
Added shutdown function which closes open sockets, etc.
Renamed DEFAULT_LOGGING_PORT->DEFAULT_TCP_LOGGING_PORT.
Added DEFAULT_UDP_LOGGING_PORT.
Added log_test4.py (example of arbitrary levels).
Added addLevelName, changed behaviour of getLevelName.
Fixed bugs in DatagramHandler.
Added SMTPHandler implementation.
Added log_test5.py to test SMTPHandler.
Added SysLogHandler (contribution from Nicolas Untz based on Sam
Rushing's syslog.py).
Modified log_test1.py to add a SysLogHandler.
Added rollover functionality to FileHandler.
Added NTEventLogHandler (based on Win32 extensions).
Added MemoryHandler implementation.
Added log_test7.py to test MemoryHandler.
Added log_test8.py to test FileHandler rollover.
Added logException method to Logger.
Added formatException method to Formatter.
Added log_test6.py to test NTEventHandler and logException.
Numerous internal method renamings (sorry - but better to do this now,
rather than when we enter beta status).



More information about the Python-list mailing list