From 2783ad6bc1fe48157e82925a77c18b9efe9f7188 Mon Sep 17 00:00:00 2001
From: "Craig R. McClanahan"
org.apache.commons.logging.impl.Log4JCategoryLog.org.apache.commons.logging.impl.Log4JLogger.
* org.apache.commons.logging.impl.Jdk14Logger.* When org.apache.commons.logging.log is not set, * or when no corresponding class can be found, - * this method will return a Log4JCategoryLog - * if the log4j Category class is + * this method will return a Log4JLogger + * if the log4j Logger class is * available in the {@link LogSource}'s classpath, or a * Jdk14Logger if we are on a JDK 1.4 or later system, or * NoOpLog if neither of the above conditions is true. diff --git a/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java b/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java index 9712d15..bf91e8e 100644 --- a/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java +++ b/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/impl/Attic/Log4JCategoryLog.java,v 1.7 2002/11/23 03:25:33 craigmcc Exp $ - * $Revision: 1.7 $ - * $Date: 2002/11/23 03:25:33 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/impl/Attic/Log4JCategoryLog.java,v 1.8 2002/11/23 03:49:40 craigmcc Exp $ + * $Revision: 1.8 $ + * $Date: 2002/11/23 03:49:40 $ * * ==================================================================== * @@ -72,10 +72,12 @@ import java.util.Enumeration; * Category instances should be done in the usual manner, as outlined in * the Log4J documentation.
* + * @deprecated Use {@link Log4JLogger} instead. + * * @author Scott Sanders * @author Rod Waldhoff * @author Robert Burrell Donkin - * @version $Id: Log4JCategoryLog.java,v 1.7 2002/11/23 03:25:33 craigmcc Exp $ + * @version $Id: Log4JCategoryLog.java,v 1.8 2002/11/23 03:49:40 craigmcc Exp $ */ public final class Log4JCategoryLog implements Log { diff --git a/src/java/org/apache/commons/logging/impl/Log4jFactory.java b/src/java/org/apache/commons/logging/impl/Log4jFactory.java index 5c53fa4..08c94b9 100644 --- a/src/java/org/apache/commons/logging/impl/Log4jFactory.java +++ b/src/java/org/apache/commons/logging/impl/Log4jFactory.java @@ -68,7 +68,7 @@ import org.apache.commons.logging.LogConfigurationException; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogSource; -import org.apache.log4j.Category; +import org.apache.log4j.Logger; /** *Concrete subclass of {@link LogFactory} specific to log4j. @@ -137,7 +137,7 @@ public final class Log4jFactory extends LogFactory { if( instance != null ) return instance; - instance=new Log4JCategoryLog( Category.getInstance( clazz )); + instance=new Log4JLogger( Logger.getLogger( clazz )); instances.put( clazz, instance ); return instance; } @@ -150,7 +150,7 @@ public final class Log4jFactory extends LogFactory { if( instance != null ) return instance; - instance=new Log4JCategoryLog( Category.getInstance( name )); + instance=new Log4JLogger( Logger.getLogger( name )); instances.put( name, instance ); return instance; } diff --git a/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java b/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java index a75bbff..07ce281 100644 --- a/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java +++ b/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java @@ -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.19 2002/11/23 03:07:58 craigmcc Exp $ - * $Revision: 1.19 $ - * $Date: 2002/11/23 03:07:58 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java,v 1.20 2002/11/23 03:49:40 craigmcc Exp $ + * $Revision: 1.20 $ + * $Date: 2002/11/23 03:49:40 $ * * ==================================================================== * @@ -86,7 +86,7 @@ import org.apache.commons.logging.LogFactory; *
org.apache.commons.logging.Log system property
* to identify the requested implementation class.org.apache.commons.logging.impl.Log4JCategoryLog.org.apache.commons.logging.impl.Log4JLogger.
* org.apache.commons.logging.impl.Jdk14Logger.org.apache.commons.logging.Log.