[issue2473] logging.LogRecord should know how to handle dict-like args

2008-03-29 Thread Vinay Sajip
Vinay Sajip <[EMAIL PROTECTED]> added the comment: You don't need to change the logging package for this. Simply generate a bona-fide dict from your UserDict or DictMixin subclass as follows: dict(userDict_or_mixIn_instance) and pass that into the logging call instead of userDict_or_mixIn_insta

[issue2473] logging.LogRecord should know how to handle dict-like args

2008-03-24 Thread Will Maier
New submission from Will Maier <[EMAIL PROTECTED]>: In (at least) Python 2.5.2, logging.logRecord provides a very useful facility to interpolate formatted strings. This feature expands an *args sequence; if that sequence has only one element and that element is a dictionary, LogRecord uses the di