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 vinay.sajip
Recipients srid, vinay.sajip
Date 2009-07-09.23:54:21
SpamBayes Score 1.1987937e-06
Marked as misclassified No
Message-id <1247183662.84.0.695794207579.issue6435@psf.upfronthosting.co.za>
In-reply-to
Content
[snip example of how to achieve same effect as recipe in a simpler way]
>> How will this differ in its effect from your recipe?

> Actually, I did not know about 'Filter' until now. I will give it a
> try sometime.

Wouldn't it improve your recipe further to use more effectively
functionality which is already present in the logging package, instead
of re-inventing the wheel? Filter has been part of the logging package
design from the beginning, and is reasonably well documented.

If my suggestion has the same effect as your recipe, it has the further
benefit of users being able to specify thresholds more flexibly. For
example, in your response to a comment on your recipe, you acknowledge
that perhaps the destination you initially chose for DEBUG message might
need to be reconsidered. This means that it's probably better to provide
mechanism, and leave policy more to the user. With moderately careful
design of the Filter class, more flexibility could be provided with no
real penalty in code size or complexity.
History
Date User Action Args
2009-07-09 23:54:22vinay.sajipsetrecipients: + vinay.sajip, srid
2009-07-09 23:54:22vinay.sajipsetmessageid: <1247183662.84.0.695794207579.issue6435@psf.upfronthosting.co.za>
2009-07-09 23:54:21vinay.sajiplinkissue6435 messages
2009-07-09 23:54:21vinay.sajipcreate