You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
lambertdw commentedon Feb 9, 2009
Allow logger object log message creation methods using ''.format method.
have:
want:
Work'rounds from PEP-282:
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).
vsajip commentedon Feb 17, 2009
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.