1
0

Add the second constructor to be used with Log4jFactory.

Make it final ( so the indirection can be optimized by jits )


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Costin Manolache
2002-02-15 03:54:19 +00:00
parent 377a98ff3b
commit a42b6b9bd6

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/Attic/Log4JCategoryLog.java,v 1.1 2002/02/03 01:31:29 sanders Exp $ * $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.2 2002/02/15 03:54:19 costin Exp $
* $Revision: 1.1 $ * $Revision: 1.2 $
* $Date: 2002/02/03 01:31:29 $ * $Date: 2002/02/15 03:54:19 $
* *
* ==================================================================== * ====================================================================
* *
@@ -75,7 +75,7 @@ import org.apache.commons.logging.Log;
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a> * @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
* @author Rod Waldhoff * @author Rod Waldhoff
* @author Robert Burrell Donkin * @author Robert Burrell Donkin
* @version $Id: Log4JCategoryLog.java,v 1.1 2002/02/03 01:31:29 sanders Exp $ * @version $Id: Log4JCategoryLog.java,v 1.2 2002/02/15 03:54:19 costin Exp $
*/ */
public final class Log4JCategoryLog implements Log { public final class Log4JCategoryLog implements Log {
@@ -84,7 +84,7 @@ public final class Log4JCategoryLog implements Log {
/** Log to this category */ /** Log to this category */
Category category = null; private Category category = null;
// ------------------------------------------------------------ Constructor // ------------------------------------------------------------ Constructor
@@ -97,6 +97,12 @@ public final class Log4JCategoryLog implements Log {
category = Category.getInstance(name); category = Category.getInstance(name);
} }
/** For use with a log4j factory
*/
public Log4JCategoryLog(Category category ) {
this.category=category;
}
// ---------------------------------------------------------- Implmentation // ---------------------------------------------------------- Implmentation