Commons Logging is a wrapper around other logging facilities. If Log4J
is in the classpath it will "discover" it and use it. See
http://commons.apache.org/logging/


On Sun, 2010-08-15 at 03:47 -0700, BenXS wrote:
> I learned that I have to specify/import log4j in a java prgm as follows:
> 
> import org.apache.log4j.Logger;
> 
> However I found now a Java program where the logging is specified as
> follows:
> 
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> 
> Surprisingly this commons logger pays attention to all log4j declarations
> in log4j.properties as well.
> 
> Is this intended? 
> 
> What is the difference between the two different "imports"?
> 
> Ben

________
There is no remedy for love but to love more.
-- Henry David Thoreau



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to