logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Lu <z...@umich.edu>
Subject log4j and common logging
Date Wed, 17 Nov 2010 19:36:35 GMT
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


Mime
View raw message