Vinay Sajip <[email protected]> added the comment:
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.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11071>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com