Author vinay.sajip
Recipients bk2zsto, vinay.sajip
Date 2014-05-30.16:29:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401467395.41.0.443495484052.issue21608@psf.upfronthosting.co.za>
In-reply-to
Content
As far as POLA is concerned, IMO serializing to the HTTP request format isn't really a text formatting operation in the same way as for most other handlers. The point is, even if you could have a Formatter handle the operation, you can't usefully share this Formatter with other handlers (which you refer to in your initial post), unless you really want to have format lines such as a=b&c=d&e=f output to console or file, say - which is unlikely to be a common requirement.

I don't expect to make any changes in this area - as I mentioned earlier, because (a) backward compatibility and (b) IMO it will surprise more people than the current approach (IIRC no one else has raised this or a similar issue in the 10+ years that logging has been in Python).

BTW, I am happy to update the documentation for HTTPHandler to indicate that it can't sensibly use a Formatter. I'll do this soon, and that change will close this issue.
History
Date User Action Args
2014-05-30 16:29:55vinay.sajipsetrecipients: + vinay.sajip, bk2zsto
2014-05-30 16:29:55vinay.sajipsetmessageid: <1401467395.41.0.443495484052.issue21608@psf.upfronthosting.co.za>
2014-05-30 16:29:55vinay.sajiplinkissue21608 messages
2014-05-30 16:29:54vinay.sajipcreate