Yes, that is correct. The getRootLogger method is not included in the
Configuration interface. I created a unit test to verify the code worked and I
should have pasted the code from the test.
Ralph
On May 18, 2013, at 7:26 PM, Eric Scheie wrote:
> I should add that I didn't find the getRootL
I should add that I didn't find the getRootLogger method in the API. This
is the actual code I used.
LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
Configuration config = ctx.getConfiguration();
LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.
ROOT_LOGGER_
I agree, Scott.
On May 18, 2013, at 11:11 AM, Scott Deboy wrote:
> From looking at this, seems like config.getRootLoggerConfig() would be a
> better name.
> On May 17, 2013 10:40 PM, "Ralph Goers" wrote:
>
>> No, the X Logger does not inherit its level from the root Logger. It
>> inherits its l
>From looking at this, seems like config.getRootLoggerConfig() would be a
better name.
On May 17, 2013 10:40 PM, "Ralph Goers" wrote:
> No, the X Logger does not inherit its level from the root Logger. It
> inherits its level from the root LoggerConfig. See the picture at
> http://logging.apache
Thanks Ralph! That was the code snippet I was looking for. Works great!
Best,
-Eric
On Fri, May 17, 2013 at 10:39 PM, Ralph Goers wrote:
> No, the X Logger does not inherit its level from the root Logger. It
> inherits its level from the root LoggerConfig. See the picture at
> http://logging