Message90365
[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:22 | vinay.sajip | set | recipients:
+ vinay.sajip, srid |
2009-07-09 23:54:22 | vinay.sajip | set | messageid: <1247183662.84.0.695794207579.issue6435@psf.upfronthosting.co.za> |
2009-07-09 23:54:21 | vinay.sajip | link | issue6435 messages |
2009-07-09 23:54:21 | vinay.sajip | create | |
|