Re: Enums and Custom Levels - a few minor changes

2014-01-26 Thread Ralph Goers
I modified Level to be final and have a private constructor. I added a static method named getOrCreateLevel. Custom extensions should use that method to create the static reference. This allows the new Level to be declared in multiple places without a problem as they will all get the same

Re: Enums and Custom Levels - a few minor changes

2014-01-26 Thread Remko Popma
The switch in o.a.l.Category.getEffectiveLevel() in log4j-1.2-api is missing the FATAL level (and perhaps OFF also). Is this intentional? On Monday, January 27, 2014, Ralph Goers ralph.go...@dslextreme.com wrote: I modified Level to be final and have a private constructor. I added a static

Re: Enums and Custom Levels - a few minor changes

2014-01-26 Thread Ralph Goers
You mentioned that before and I didn’t check since it has been that way from the beginning. Yes it looks like a bug to me. Ralph On Jan 26, 2014, at 7:06 PM, Remko Popma remko.po...@gmail.com wrote: The switch in o.a.l.Category.getEffectiveLevel() in log4j-1.2-api is missing the FATAL

Re: Enums and Custom Levels - a few minor changes

2014-01-26 Thread Remko Popma
Understood. I can't commit from work but I can fix this when I get home tonight. On Monday, January 27, 2014, Ralph Goers ralph.go...@dslextreme.com wrote: You mentioned that before and I didn’t check since it has been that way from the beginning. Yes it looks like a bug to me. Ralph On