Message81461
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.isEnabledFor(logging.INFO):
hamletStr = hamletDom.toxml()
log.info(hamletStr)
or install custom Formatter.
I presume this is already on the back burner.
Incidentally, BufferingFormatter.format uses string += string instead of
''.join(list_of_strings). |
|
Date |
User |
Action |
Args |
2009-02-09 16:44:13 | LambertDW | set | recipients:
+ LambertDW |
2009-02-09 16:44:12 | LambertDW | set | messageid: <1234197852.95.0.276908828254.issue5192@psf.upfronthosting.co.za> |
2009-02-09 16:44:10 | LambertDW | link | issue5192 messages |
2009-02-09 16:44:09 | LambertDW | create | |
|