@logging.apache.org
Subject: RE: range filter?
Date: Wed, 26 Aug 2015 10:41:27 -0400
Thanks for clarifying.
My effort to try to get the composite + threshold filter working such that I
can filter a single level so far has failed. Here is my code:
import org.apache.logging.log4j.LogManager;
import
LevelRangeFilter.
I think a LevelRangeFilter is a good idea anyway, so Log4j should provide
one. Writing one is easy, it's docs will take longer to write well.
Gary
Thanks,
Nick
From: nic...@msn.com
To: log4j-user@logging.apache.org
Subject: RE: range filter?
Date: Wed, 26 Aug 2015 10:41:27
and INFOP1.
Any suggestion on how to get filtering of a single level working with the
composite filter + threshold filter?
Thanks,
Nick
Subject: Re: range filter?
From: ralph.go...@dslextreme.com
Date: Wed, 26 Aug 2015 07:05:35 -0700
To: log4j-user@logging.apache.org
I apologize, you
a
custom level that is one less than or one more than the level I'm looking to
capture so that I ensure I'm only getting that one level. I will try this out,
but it would be nice to have something like the LevelRangeFilter.
Thanks,
Nick
Subject: Re: range filter?
From: ralph.go...@dslextreme.com
the level I'm
looking to capture so that I ensure I'm only getting that one level. I will
try this out, but it would be nice to have something like the
LevelRangeFilter.
Thanks,
Nick
Subject: Re: range filter?
From: ralph.go...@dslextreme.com
Date: Tue, 25 Aug 2015 22:08:01 -0700
LevelRangeFilter was to set the levelMin and
levelMax to the same value.
Thanks,
Nick
Subject: Re: range filter?
From: remko.po...@gmail.com
Date: Wed, 26 Aug 2015 09:12:29 +0900
To: log4j-user@logging.apache.org
You misread the comment. The commentor basically told me the answer works
the levelMin
and levelMax to the same value.
Thanks,
Nick
Subject: Re: range filter?
From: remko.po...@gmail.com
Date: Wed, 26 Aug 2015 09:12:29 +0900
To: log4j-user@logging.apache.org
You misread the comment. The commentor basically told me the answer works
with a minor change, and that he
just 1 away from WARN in either direction that those don't make it in the
appender. How would you do that?
How I did this with the log4net LevelRangeFilter was to set the levelMin
and levelMax to the same value.
Thanks,
Nick
Subject: Re: range filter?
From: remko.po...@gmail.com
Date
: Remko Popma remko.po...@gmail.com
Date: 08/25/2015 9:06 PM (GMT-07:00)
To: Log4J Users List log4j-user@logging.apache.org
Subject: Re: range filter?
The StackOverflow link was an answer to the question how to send _only_ INFO
level events to an appender.
I thought it would
log4j-user@logging.apache.org
Subject: Re: range filter?
The StackOverflow link was an answer to the question how to send _only_ INFO
level events to an appender.
I thought it would illustrate how filters combinations could be used to achieve
the original request: I might want all DEBUG
don't make it in the
appender. How would you do that?
How I did this with the log4net LevelRangeFilter was to set the levelMin
and levelMax to the same value.
Thanks,
Nick
Subject: Re: range filter?
From: remko.po...@gmail.com
Date: Wed, 26 Aug 2015 09:12:29 +0900
To: log4j-user
the levelMin and
levelMax to the same value.
Thanks,
Nick
Subject: Re: range filter?
From: remko.po...@gmail.com
Date: Wed, 26 Aug 2015 09:12:29 +0900
To: log4j-user@logging.apache.org
You misread the comment. The commentor basically told me the answer works
with a minor change
: range filter?
Why not? It would take about 10 minutes to implement. In fact, I am sure it
would take more time to document it than to implement it.
Ralph
On Aug 25, 2015, at 8:42 PM, Gary Gregory garydgreg...@gmail.com wrote:
I've got to say that I use MarkerFilters all the time, but I
I believe two threshold filters inside a composite filter should should work
provided you have the onMatch and onMismatch set appropriately.
Ralph
On Aug 25, 2015, at 12:36 PM, Nicholas Duane nic...@msn.com wrote:
I'm looking for a range filter in log4j2. I see there is on in log4net
I'm looking for a range filter in log4j2. I see there is on in log4net and it
appears there was one written by someone for log4j 1. Just wondering if there
is something 'out of the box' in log4j2 that will accomplish the same? I was
wondering whether this could be accomplished
@logging.apache.org
Subject: RE: range filter?
Date: Tue, 25 Aug 2015 19:49:48 -0400
Thanks. I checked out the link. It seems they were trying to do
something similar to me. I see the last comment on that is that it doesn't
work.
There is another post afterwards which uses the ThresholdFilter
the same functionality of the LevelRangeFilter in
log4net, but of course in log4j2.
Patches welcome is something I often say ;-)
Gary
Thanks,
Nick
From: nic...@msn.com
To: log4j-user@logging.apache.org
Subject: RE: range filter?
Date: Tue, 25 Aug 2015 19:49:48 -0400
Thanks. I
the ThresholdFilter. However the
ThresholdFilter won't work as that allows, or denys, all levels greater than
or equal to or less than or equal to the level. I need to filter a specific
range of levels.
Thanks,
Nick
Date: Wed, 26 Aug 2015 08:27:04 +0900
Subject: Re: range filter?
From: remko.po
: Wed, 26 Aug 2015 08:27:04 +0900
Subject: Re: range filter?
From: remko.po...@gmail.com
To: log4j-user@logging.apache.org
Can you try something similar to this
http://stackoverflow.com/questions/24695133/log4j2-filter-particular-level-in-apender/24697002#24697002
and see if that works
events going to one
appender. All INFO, ERROR and WARN events going to another appender.
All BUSINESS events (my custom) level, going to yet another appender.
Thanks,
Nick
Date: Tue, 25 Aug 2015 13:17:44 -0700
Subject: Re: range filter?
From: garydgreg...@gmail.com
To: log4j-user
, ERROR and WARN events going to another appender.
All BUSINESS events (my custom) level, going to yet another appender.
Thanks,
Nick
Date: Tue, 25 Aug 2015 13:17:44 -0700
Subject: Re: range filter?
From: garydgreg...@gmail.com
To: log4j-user@logging.apache.org
When you get
greater than or
equal to or less than or equal to the level. I need to filter a specific range
of levels.
Thanks,
Nick
Date: Wed, 26 Aug 2015 08:27:04 +0900
Subject: Re: range filter?
From: remko.po...@gmail.com
To: log4j-user@logging.apache.org
Can you try something similar to this
http
Basically I need the same functionality of the LevelRangeFilter in log4net, but
of course in log4j2.
Thanks,
Nick
From: nic...@msn.com
To: log4j-user@logging.apache.org
Subject: RE: range filter?
Date: Tue, 25 Aug 2015 19:49:48 -0400
Thanks. I checked out the link. It seems they were
to one
appender. All INFO, ERROR and WARN events going to another appender.
All BUSINESS events (my custom) level, going to yet another appender.
Thanks,
Nick
Date: Tue, 25 Aug 2015 13:17:44 -0700
Subject: Re: range filter?
From: garydgreg...@gmail.com
To: log4j-user@logging.apache.org
When
questions.
I guess there is a big difference in support between the two products?
Thanks,
Nick
Date: Tue, 25 Aug 2015 17:37:18 -0700
Subject: Re: range filter?
From: garydgreg...@gmail.com
To: log4j-user@logging.apache.org
Ah, yes, sorry, I had not read it in detail. It would be nice
are maybe just 1
away from WARN in either direction that those don't make it in the appender.
How would you do that?
How I did this with the log4net LevelRangeFilter was to set the levelMin and
levelMax to the same value.
Thanks,
Nick
Subject: Re: range filter?
From: remko.po...@gmail.com
26 matches
Mail list logo