[issue5192] Update log message formatting.

2009-02-19 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: wont fix -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5192] Update log message formatting.

2009-02-17 Thread Vinay Sajip
Vinay Sajip added the comment: Isn't there a backward compatibility problem? If a message format string contains both "%s" and "{0}", how is logging supposed to know what to use - a % b or a.format(b)? The way to do it is a custom Formatter, as you've indicated. -- nosy: +vsajip resolu

[issue5192] Update log message formatting.

2009-02-09 Thread David W. Lambert
New submission from David W. Lambert : Allow logger object log message creation methods using ''.format method. have: logger_object.info('%s','lazy is better') logger_object.debug('{0!s}'.format('wasted effort')) want: logger_object.debug('{0}','Lazy') Work'rounds from pep282: if log.isEn