Author vinay.sajip
Recipients srid, vinay.sajip
Date 2009-07-09.23:54:21
SpamBayes Score 1.19879e-06
Marked as misclassified No
Message-id <>
[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.
Date User Action Args
2009-07-09 23:54:22vinay.sajipsetrecipients: + vinay.sajip, srid
2009-07-09 23:54:22vinay.sajipsetmessageid: <>
2009-07-09 23:54:21vinay.sajiplinkissue6435 messages
2009-07-09 23:54:21vinay.sajipcreate