|
From: Kevin G. <ke...@go...> - 2004-11-30 15:58:57
|
Mike Schilli wrote:
> Now, if the script calls $logger->more_logging() ...the
> application has to find out which appenders there are, what their thresholds
> are, and adjust them accordingly.
>
> If we wanted to make this kind of adjustment really easy (just like
> more_logging()), what's the best way? I'm envisioning something like
>
> $logger->more_logging();
> $logger->lower_appender_thresholds();
>
> or even
>
> $logger->more_logging({lower_appender_thresholds => 1});
You're right that it shouldn't be automatic, appenders shouldn't have
their thresholds lowered implicitly, if I set Threshold=ERROR on my
performance-intensive database appender I don't want it flooded with
debug messages.
So in terms of making it explicit, I have an attraction to the first method.
> to have the logger hunt down all appenders connected to it and lower
> or bump up their thresholds.
>
> What do you think, is this a case common enough to provide a convenience
> function for it?
It sounds pretty far out to me, if I was paying you to work on it I'd
say it sounds like a lot of work for a pretty small feature. But if you
have a request and the motivation, go for it.
--
Happy Trails . . .
Kevin M. Goess
(and Anne and Frank)
904 Carmel Ave.
Albany, CA 94706
(510) 525-5217
|