This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kespindler
Recipients gkoller, kespindler, r.david.murray, vinay.sajip
Date 2014-01-13.19:37:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389641821.23.0.948690837882.issue14031@psf.upfronthosting.co.za>
In-reply-to
Content
I came across this issue while fixing issue20242. This issue (14031) still exists and is a major source of annoyance and confusion, and I suggest re-opening it.

Specifying the "{" style, while still being forced to use % formatting in log statements is backward and incredibly confusing for a number of key reasons:

 - The `style` keyword accomplishes a single thing only, and that is changing the format specification of the output, which is specified once and never touched again. For the myriad log statements littered throughout a codebase, it has *absolutely* no effect.
 - This is incredibly misleading to users. Why would there be this parameter to basicConfig that does (next to) nothing? Furthermore, if I've specified the { style, **why** would I write my log statements using the % style.
 - It forces the user to keep using % style formatting. The documentation explicitly states that this is "old style" formatting, and "new style" should be used, (due to its many advantages). Why force the user to know two formatting styles?


I created a patch (with test cases) that allows for this functionality. The whole idea of this feature is giving users the choice, if their environment allows it, to use the new-style formatting. Users should not have to rely on the hack linked in the blog in order to achieve *exected* behavior!
History
Date User Action Args
2014-01-13 19:37:01kespindlersetrecipients: + kespindler, vinay.sajip, r.david.murray, gkoller
2014-01-13 19:37:01kespindlersetmessageid: <1389641821.23.0.948690837882.issue14031@psf.upfronthosting.co.za>
2014-01-13 19:37:01kespindlerlinkissue14031 messages
2014-01-13 19:37:01kespindlercreate