Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
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 nic...@msn.com wrote: I got log4j 2.3 installed and verified that custom levels are working for me now. However, I

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 configuration

Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
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 configuration Date: Wed, 26 Aug 2015 20:34:13 -0400 That would certainly be a possible explanation. I'm working on figuring out how to upgrade to log4j

Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
Users List log4j-user@logging.apache.org 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 nic...@msn.com wrote: I got log4j 2.3 installed and verified that custom

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 ralph.go...@dslextreme.com Date: 08/29/2015 9:51 PM (GMT-07:00) To: Log4J Users List log4j-user@logging.apache.org Subject: Re: custom levels via configuration OFF has a value of 0. What would

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
On Wed, Aug 26, 2015 at 11:46 AM, Gary Gregory garydgreg...@gmail.com wrote: This: Logger name=HelloWorld level=ALL 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

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
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: Logger name=HelloWorld level=ALL is only going to match: static

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
This: Logger name=HelloWorld level=ALL 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

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: ?xml version=1.0 encoding=UTF-8?

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
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: Logger name=HelloWorld level=ALL is only going to match: static Logger log

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: garydgreg

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
: 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 garydgreg...@gmail.com wrote: This: Logger name=HelloWorld level=ALL is only going to match: static Logger log

Re: custom levels via configuration

2015-08-26 Thread Gary Gregory
(LogManager.java:473) at HelloWorld.clinit(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 released a version 2.0-1.fc21 so it must be a Fedora build

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 nic...@msn.com wrote: On to my next problem. I'm trying to define a

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 From: remko.po

Re: custom levels via configuration

2015-08-26 Thread Remko Popma
Subject: Re: custom levels via configuration From: remko.po...@gmail.com To: log4j-user@logging.apache.org 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

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 17:05:02 -0700

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-user@logging.apache.org I

Re: custom levels via configuration

2015-08-26 Thread Ralph Goers
Subject: Re: custom levels via configuration From: garydgreg...@gmail.com To: log4j-user@logging.apache.org We've never released a version 2.0-1.fc21 so it must be a Fedora build, presumably based on 2.0 or some fork of it. You need to test with version 2.3 or a 2.4-SNAPSHOT. I'll leave you

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
2015 12:36:40 -0700 Subject: Re: custom levels via configuration From: garydgreg...@gmail.com To: log4j-user@logging.apache.org We've never released a version 2.0-1.fc21 so it must be a Fedora build, presumably based on 2.0 or some fork of it. You need to test with version 2.3 or a 2.4