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: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]