Path to this page:
Subject: CVS commit: pkgsrc/devel/py-logging
From: Min Sik Kim
Date: 2004-03-04 17:26:53
Message id: 20040304162653.D6AEF2DA1D@cvs.netbsd.org
Log Message:
Update py-logging to 0.4.9.2.
Changes since 0.4.7:
- Traceback text is now cached.
- Tracebacks can be propagated across sockets as text.
- Added makeLogRecord() to allow a LogRecord to be created from a dictionary.
- Closing a handler now removes it from the internal list used by shutdown().
- Made close() call flush() for handlers where this makes
sense (thanks to Jim Jewett).
- The exc_info keyword parameter can be used to pass an exception tuple as
well as a flag indicating that the current exception should be logged.
- A shutdown hook is registered to call shutdown() on
application (Python) exit (thanks to Jim Jewett).
- Removed redundant error check in setLoggerClass().
- Added RESET_ERROR to logging.config.
- SocketHandler now uses an exponential backoff strategy.
- Minor documentation corrections.
- Made _listener global in stopListening().
- Made listen() correctly pass the specified port.
- Removed some redundant imports in __init__.py.
- Added the record being processed as a parameter to handleError.
- Handler.handle returns the result of applying the filter to the record.
- Added a seek(0, 2) in RotatingFileHandler before the
tell() call. This is because under Windows, tell()
returns 0 until the first actual write.
- Altered findCaller to not use inspect.
- Renamed warn and WARN to warning and WARNING. This may break
existing code, but the standard Python module will use
warning/WARNING rather than warn/WARN. The fatal and FATAL synonyms
for critical and CRITICAL have also been removed.
- Added defaultEncoding and some support for encoding Unicode messages.
- Added process ID to the list of LogRecord attributes.
- Modified Logger.removeHandler so that it does not
close the handler on removal.
- Modified SMTPHandler to treat a single "to address" correctly.
- Modified SMTPHandler to add a date header to the SMTP message.
- Modified HTTPHandler to factor out the mapping of
a LogRecord to a dictionary.
Files: