Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
> >> On Aug 29, 2015, at 9:41 PM, Nicholas Duane wrote: >> >> Ideally that I couldn't turn it off. >> Thanks,Nick >> >> Original message >> From: Ralph Goers >> Date: 08/29/2015 9:51 PM (GMT-07:00) >> To: Log4J Users

Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
Log4J Users List > Subject: Re: custom levels via configuration > > OFF has a value of 0. What would it mean to have a value less than that? > > Ralph > >> On Aug 29, 2015, at 7:22 PM, Nicholas Duane wrote: >> >> I got log4j 2.3 installed and verified that c

RE: custom levels via configuration

2015-08-29 Thread Nicholas Duane
Ideally that I couldn't turn it off. Thanks,Nick Original message From: Ralph Goers Date: 08/29/2015 9:51 PM (GMT-07:00) To: Log4J Users List Subject: Re: custom levels via configuration OFF has a value of 0. What would it mean to have a value less than that? Ralph

Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
a negative number. > Is that by design? > > Thanks, > Nick > >> From: nic...@msn.com >> To: log4j-user@logging.apache.org >> Subject: RE: custom levels via configuration >> Date: Wed, 26 Aug 2015 20:34:13 -0400 >> >> That would certainly be a p

RE: custom levels via configuration

2015-08-29 Thread Nicholas Duane
I got log4j 2.3 installed and verified that custom levels are working for me now. However, I did noticed you can't set the intValue to a negative number. Is that by design? Thanks, Nick > From: nic...@msn.com > To: log4j-user@logging.apache.org > Subject: RE: custom levels via

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
That would certainly be a possible explanation. I'm working on figuring out how to upgrade to log4j 2.3. Hopefully that will solve my custom levels issue. Thanks, Nick > Subject: Re: custom levels via configuration > From: ralph.go...@dslextreme.com > Date: Wed, 26 Aug 2015

Re: custom levels via configuration

2015-08-26 Thread Ralph Goers
he.logging.log4j.core.LoggerContext.start(LoggerContext.java:146) >at > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:75) >at > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37) >

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
It seems my custom levels aren't working as I'm getting null from Level.getLevel() when passing those custom level names. Thanks, Nick > Date: Thu, 27 Aug 2015 08:34:43 +0900 > Subject: Re: custom levels via configuration > From: remko.po...@gmail.com > To: log4j-u

Re: custom levels via configuration

2015-08-26 Thread Remko Popma
oth were not found from my HelloClass. And I had sent out some log4j > logging in where there was a warning which I assume was related to me using > INFOM1 in the threshold filter. > > Thanks, > Nick > > > Date: Thu, 27 Aug 2015 08:20:20 +0900 > > Subject: Re: cu

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
Both were not found from my HelloClass. And I had sent out some log4j logging in where there was a warning which I assume was related to me using INFOM1 in the threshold filter. Thanks, Nick > Date: Thu, 27 Aug 2015 08:20:20 +0900 > Subject: Re: custom levels via configuration

Re: custom levels via configuration

2015-08-26 Thread Remko Popma
Nick, What was the output of this program? Were both INFOM1 and INFOP1 not found, or was INFOM1 found (because it is used in the ThresholdFilter), but not INFOP1? Remko On Thu, Aug 27, 2015 at 3:19 AM, Nicholas Duane wrote: > > > > On to my next problem. I'm trying to define a custom level in

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
che.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37) > at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:473) > at HelloWorld.(HelloWorld.java:7) > > Thanks, > Nick > > > Date: Wed, 26 Aug 2015 12:36:40 -0700 > >

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
ing.log4j.LogManager.getLogger(LogManager.java:473) at HelloWorld.(HelloWorld.java:7) Thanks, Nick > Date: Wed, 26 Aug 2015 12:36:40 -0700 > Subject: Re: custom levels via configuration > From: garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > We've never r

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
12:34:45 -0700 > > Subject: Re: custom levels via configuration > > From: garydgreg...@gmail.com > > To: log4j-user@logging.apache.org > > > > On Wed, Aug 26, 2015 at 11:46 AM, Gary Gregory > > wrote: > > > > > This: > > > >

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
Yes I am a true noob to java and linux and log4j. What is gitmaster? I assume related to github somehow? How can I see the test you created? Is there a link you can provide? Thanks, Nick > Date: Wed, 26 Aug 2015 12:34:45 -0700 > Subject: Re: custom levels via configuration > From:

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
orld'. I'm running fedora 21. When I do a 'yum list log4j' it says > I have 2.0-1.fc21. > > Thanks, > Nick > > > Date: Wed, 26 Aug 2015 11:46:51 -0700 > > Subject: Re: custom levels via configuration > > From: garydgreg...@gmail.com > > To

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
On Wed, Aug 26, 2015 at 11:46 AM, Gary Gregory wrote: > This: > > > > is only going to match: > > static Logger log = LogManager.getLogger(HelloWorld.class.getName()); > > if the class in unpackaged, which it looks it is based on this paste but I > want to double check that you did not omit anyt

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
1. When I do a 'yum list log4j' it says I have 2.0-1.fc21. Thanks, Nick > Date: Wed, 26 Aug 2015 11:46:51 -0700 > Subject: Re: custom levels via configuration > From: garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > This: > > > > is o

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
This: is only going to match: static Logger log = LogManager.getLogger(HelloWorld.class.getName()); if the class in unpackaged, which it looks it is based on this paste but I want to double check that you did not omit anything from the example. Are you using the latest version (2.3)?. I just

custom levels via configuration

2015-08-26 Thread Nicholas Duane
On to my next problem. I'm trying to define a custom level in configuration. Not sure if it's working or not. However, when I attempt to get the level for that custom level I get back null, which I wasn't expecting. Here is the log4j2.xml config file: