logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: What is the equivalent of doing this in property file?
Date Wed, 11 Jun 2008 23:45:40 GMT

On Jun 11, 2008, at 12:57 PM, MrNobody wrote:

>
> In the property file I can set a particular package or class to have  
> DEBUG
> level, despite what my overall logging level is, like this:
>
> log4j.logger.com.ibatis=DEBUG
>
> How do I do this programatically - (in the code, not in property  
> file) ???

Logger.getLogger("com.ibatis").setThreshold(Level.DEBUG);


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


Mime
View raw message