logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Watts <...@cliftonfarm.org>
Subject Re: log4j and common logging
Date Wed, 17 Nov 2010 20:42:03 GMT
What does running the program with -Dlog4j.debug tell you? Stderr should
show what config file, if any, it's using.


On Wed, 2010-11-17 at 14:36 -0500, Henry Lu wrote:
> I tried to switch from log4j to org.apache.commons.logging.Log + log4j. 
> I my code, I have:
> 
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> ...
> 
> public class XYZ
> {
>     static Log log = LogFactory.getLog("Xyz");
> ...
> }
> 
> and I am using the existing log4j.property file which works fine for log4j.
> 
> There is no compile error at all.
> 
> But when I run the program, there is no log info at all.
> why?
> 
> -Henry
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message