Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
If you are trying to ensure that specific events are always logged I would recommend you: 1. Create a class that extends XMLConfiguration. 2. Override the start() method. 3. Call super.start() in the start method. 4. Create a global filter that accepts the events you always want logged. 5. start

Re: approach for defining loggers

2015-08-29 Thread Ralph Goers
On Aug 29, 2015, at 7:44 PM, Nicholas Duane nic...@msn.com wrote: I'm curious if there is a prescribed approach to defining loggers. Let me state what my assumption is. I assume that normally if some piece of code wants to log events/messages that it should create a logger for itself.

approach for defining loggers

2015-08-29 Thread Nicholas Duane
I'm curious if there is a prescribed approach to defining loggers. Let me state what my assumption is. I assume that normally if some piece of code wants to log events/messages that it should create a logger for itself. I guess a reasonable name to use is the class name itself. In terms of

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
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 did noticed you can't set the intValue to a

Re: custom levels via configuration

2015-08-29 Thread Ralph Goers
Ok, but then OFF wouldn’t mean OFF. Ralph On Aug 29, 2015, at 9:41 PM, Nicholas Duane nic...@msn.com wrote: 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

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