1
0

When selecting the default logging implementation on a 1.4 system, ensure

that the commons-logging wrapper is also available before selecting it.
This avoids problems when using a copy of commons-logging.jar compiled on
a 1.3 system (and therefore missing the wrappe class) when executing on a
1.4 system.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138875 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Craig R. McClanahan
2002-02-27 18:01:41 +00:00
parent 078804d827
commit 5f390b02fc

View File

@@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java,v 1.5 2002/02/26 19:00:27 costin Exp $
* $Revision: 1.5 $
* $Date: 2002/02/26 19:00:27 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java,v 1.6 2002/02/27 18:01:41 craigmcc Exp $
* $Revision: 1.6 $
* $Date: 2002/02/27 18:01:41 $
*
* ====================================================================
*
@@ -104,7 +104,7 @@ import org.apache.commons.logging.LogSource;
*
* @author Rod Waldhoff
* @author Craig R. McClanahan
* @version $Revision: 1.5 $ $Date: 2002/02/26 19:00:27 $
* @version $Revision: 1.6 $ $Date: 2002/02/27 18:01:41 $
*/
public class LogFactoryImpl extends LogFactory {
@@ -459,6 +459,7 @@ public class LogFactoryImpl extends LogFactory {
try {
loadClass("java.util.logging.Logger");
loadClass("org.apache.commons.logging.impl.Jdk14Logger");
return (true);
} catch (Throwable t) {
return (false);