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 pitrou
Recipients docs@python, pitrou, vinay.sajip
Date 2013-07-24.09:27:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374658068.88.0.794389656378.issue18541@psf.upfronthosting.co.za>
In-reply-to
Content
The idiomatic way to use a LoggerAdapter is to override the process() method. However, the example in the cookbook (*) is some gobbledegook code overriding __getitem__ and __iter__ on a separate class. It's a pity that users are directed to use an insane and impractical idiom while the sane way is simple and powerful.

(*) http://docs.python.org/2/howto/logging-cookbook.html#context-info
History
Date User Action Args
2013-07-24 09:27:48pitrousetrecipients: + pitrou, vinay.sajip, docs@python
2013-07-24 09:27:48pitrousetmessageid: <1374658068.88.0.794389656378.issue18541@psf.upfronthosting.co.za>
2013-07-24 09:27:48pitroulinkissue18541 messages
2013-07-24 09:27:48pitroucreate