Message193633
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 |
|
Date |
User |
Action |
Args |
2013-07-24 09:27:48 | pitrou | set | recipients:
+ pitrou, vinay.sajip, docs@python |
2013-07-24 09:27:48 | pitrou | set | messageid: <1374658068.88.0.794389656378.issue18541@psf.upfronthosting.co.za> |
2013-07-24 09:27:48 | pitrou | link | issue18541 messages |
2013-07-24 09:27:48 | pitrou | create | |
|