You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2021/08/21 13:39:50 UTC

Re: Log levels on a schedule

Time filter looks good!

Gary

On Mon, May 3, 2021, 14:30 Ralph Goers <ra...@dslextreme.com> wrote:

> I don’t understand. The TimeFilter filters totally based on time. We would
> need to create a new TimeThresholdFilter.
>
> Ralph
>
> > On May 3, 2021, at 10:45 AM, Gary Gregory <ga...@gmail.com>
> wrote:
> >
> > You're talking about a custom class? What about adding a defaultThreshold
> > to TimeFilter? Would that be reasonable?
> >
> > Gary
> >
> >
> > On Mon, May 3, 2021, 10:12 Apache <ra...@dslextreme.com> wrote:
> >
> >> That would be exactly right. I would create a TimeFilter that is very
> much
> >> like the DynamicThresholdFilter but instead of using an MDC key it woul
> use
> >> a time frame.
> >>
> >> This would be interesting as it could be implemented to either check the
> >> time in the event for every request or it could create a background
> thread
> >> that changes the log level to filter on based on the times. I’d probably
> >> opt for the second approach.
> >>
> >> Ralph
> >>
> >>> On May 3, 2021, at 5:33 AM, Gary Gregory <ga...@gmail.com>
> wrote:
> >>>
> >>> I just had an interesting request: Debug logging produces a ton of
> >> output
> >>> and what is being debugged only happens in a specific time window. How
> >> can
> >>> we configure debug logging to enable in a time window...?
> >>>
> >>> Any thoughts on this? Can a TimeFilter be configured to only filter
> debug
> >>> events?
> >>>
> >>> Gary
> >>
> >>
> >>
>
>
>