Message127598
Nick, thanks for highlighting the logging changes. In addition to what you mentioned, there's still more, at least some of which deserves to get into "what's new" :-)
1. QueueHandler and QueueListener classes were added to help with logging in multiprocessing applications.
2. Logger got a getChild(suffix) method which returns a child logger with the given suffix.
3. An optional stack_info parameter to logging calls provides complete stack information (not just the parts unwound during exception handling).
4. Logger got a hasHandlers() method which returns True if any handlers are available for the logger (including those in ancestor loggers).
5. The LoggerAdapter implementation was changed to improve its usability, during which its public API gained the isEnabledFor(), getEffectiveLevel(), hasHandlers() and setLevel() methods.
6. HTTPHandler gained secure and credentials keyword arguments for use with SSL and sites needing authentication.
7. StreamHandler now has a terminator attribute (defaults to '\n' for backward compatibility) but can now be set on a per-handler basis.
8. SysLogHandler gained a socktype keyword argument which defaults to SOCK_DGRAM but can accept SOCK_STREAM for use with newer syslog daemons which can listen using TCP.
9. basicConfig() also takes an optional style argument (default '%', also accepts '{' or '$').
10. SMTPHandler takes optional "secure" kwarg for use with TLS.
11. SysLogHandler now treats Unicode as per RFC 5424.
Er ... that's it for now. |
|
Date |
User |
Action |
Args |
2011-01-31 13:30:58 | vinay.sajip | set | recipients:
+ vinay.sajip, georg.brandl, rhettinger, ncoghlan, vstinner, eli.bendersky |
2011-01-31 13:30:58 | vinay.sajip | set | messageid: <1296480658.02.0.879465664013.issue11071@psf.upfronthosting.co.za> |
2011-01-31 13:30:57 | vinay.sajip | link | issue11071 messages |
2011-01-31 13:30:57 | vinay.sajip | create | |
|