Re: Log levels on a schedule

2021-08-21 Thread Gary Gregory
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

Re: Log levels on a schedule

2021-08-21 Thread 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

Re: Log levels on a schedule

2021-05-03 Thread Ralph Goers
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

Re: Log levels on a schedule

2021-05-03 Thread Gary Gregory
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

Re: Log levels on a schedule

2021-05-03 Thread Ralph Goers
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

Re: Log levels on a schedule

2021-05-03 Thread Matt Sicker
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

Re: Log levels on a schedule

2021-05-03 Thread Apache
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

Log levels on a schedule

2021-05-03 Thread Gary Gregory
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