[issue14031] logging module cannot format str.format log messages

R. David Murray report at bugs.python.org
Mon Jan 13 20:48:13 CET 2014


R. David Murray added the comment:

The reason is simple: in the general case you do not control all of the statements that produce log messages.  Some of them come from 3rd party library code.

Perhaps the documentation needs to be clarified on this point, and document the technique mentioned in the blog post Vinay linked to?  Or perhaps some pre-built wrappers can be provided in 3.5?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14031>
_______________________________________


More information about the Python-bugs-list mailing list