You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Blaine Bergeson (bbergeson)" <bb...@micron.com> on 2015/01/17 09:24:43 UTC

Log level

It seems that when I set the log level in my application it will change the level for all the loggers, including the root, even though I only called setLevel on one specific loggerConfig. Is that normal?  I would like to set the log level on a specific logger and have it apply to that logger and all its descendants, but not all its ancestors up to and including the root.

Blaine 

Sent from my iPhone
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log level

Posted by Remko Popma <re...@gmail.com>.
Ralph is the expert on this, but my understanding is that If you give a logger a name in the config file, it will exist as a separate object and you'll be able to control its level. 
Conversely, if there's no individual LoggerConfig, calls are delegated to the parent, recursively until you reach root (which we guarantee to exist). 

Sent from my iPhone

> On 2015/01/17, at 17:24, "Blaine Bergeson (bbergeson)" <bb...@micron.com> wrote:
> 
> It seems that when I set the log level in my application it will change the level for all the loggers, including the root, even though I only called setLevel on one specific loggerConfig. Is that normal?  I would like to set the log level on a specific logger and have it apply to that logger and all its descendants, but not all its ancestors up to and including the root.
> 
> Blaine 
> 
> Sent from my iPhone
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org