RE: range filter?

2015-08-26 Thread Nicholas Duane
@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

Re: range filter?

2015-08-26 Thread Gary Gregory
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

RE: range filter?

2015-08-26 Thread Nicholas Duane
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

RE: range filter?

2015-08-26 Thread Nicholas Duane
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

Re: range filter?

2015-08-26 Thread Ralph Goers
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

Re: range filter?

2015-08-25 Thread Ralph Goers
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

Re: range filter?

2015-08-25 Thread Remko Popma
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

Re: range filter?

2015-08-25 Thread Gary Gregory
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

Re: range filter?

2015-08-25 Thread Ralph Goers
: 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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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

Re: range filter?

2015-08-25 Thread Ralph Goers
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

Re: range filter?

2015-08-25 Thread Remko Popma
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

Re: range filter?

2015-08-25 Thread Gary Gregory
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

Re: range filter?

2015-08-25 Thread Ralph Goers
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 and

Re: range filter?

2015-08-25 Thread Gary Gregory
@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

Re: range filter?

2015-08-25 Thread Gary Gregory
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

Re: range filter?

2015-08-25 Thread Remko Popma
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

Re: range filter?

2015-08-25 Thread Ralph Goers
: 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

Re: range filter?

2015-08-25 Thread Ralph Goers
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

Re: range filter?

2015-08-25 Thread Remko Popma
, 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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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