logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendal Chen <wendal1...@gmail.com>
Subject Re: Specifying non-root loggers in properties files
Date Tue, 07 Jul 2009 23:51:30 GMT
use this:

lg4j.logger.yourpackage.Blah = DEBUG


2009/7/8 Yang Zhang <yanghatespam@gmail.com>

> How do I specify a non-root logger in a Java properties file?  I current
> have the root logger showing output at INFO level and above, but I'm
> interested in debugging one particular class, so I'd like to allow
> DEBUG-level output for that class.  (I always use
> Logger.getLogger(Blah.class).)  I couldn't find any examples of this in the
> documentation or on Google.  Thanks in advance.
>  --
> Yang Zhang
> http://www.mit.edu/~y_z/ <http://www.mit.edu/%7Ey_z/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message