What about adding a level attribute to the existing TimeFilter?
Gary
On Mon, May 3, 2021, 14:30 Ralph Goers 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
Time filter looks good!
Gary
On Mon, May 3, 2021, 14:30 Ralph Goers 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
> wrote:
> >
> > You're talking about a
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 wrote:
>
> You're talking about a custom class? What about adding a defaultThreshold
> to TimeFilter? Would that be
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 wrote:
> That would be exactly right. I would create a TimeFilter that is very much
> like the DynamicThresholdFilter but instead of using
Almost, but not quite. It looks like the TimeFilter will completely disable
logging during the interval.
Ralph
> On May 3, 2021, at 7:50 AM, Matt Sicker wrote:
>
> Might be able to use a time filter?
> http://logging.apache.org/log4j/2.x/manual/filters.html#TimeFilter
>
> On Mon, May 3, 2021
Might be able to use a time filter?
http://logging.apache.org/log4j/2.x/manual/filters.html#TimeFilter
On Mon, May 3, 2021 at 09:12 Apache 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
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
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