From a42b6b9bd6f9cc05e9984226fc46569bf91623a0 Mon Sep 17 00:00:00 2001 From: Costin Manolache Date: Fri, 15 Feb 2002 03:54:19 +0000 Subject: [PATCH] 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 --- .../commons/logging/impl/Log4JCategoryLog.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java b/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java index 0e68d86..efc67e8 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.1 2002/02/03 01:31:29 sanders Exp $ - * $Revision: 1.1 $ - * $Date: 2002/02/03 01:31:29 $ + * $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.2 $ + * $Date: 2002/02/15 03:54:19 $ * * ==================================================================== * @@ -75,7 +75,7 @@ import org.apache.commons.logging.Log; * @author Scott Sanders * @author Rod Waldhoff * @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 { @@ -84,7 +84,7 @@ public final class Log4JCategoryLog implements Log { /** Log to this category */ - Category category = null; + private Category category = null; // ------------------------------------------------------------ Constructor @@ -97,6 +97,12 @@ public final class Log4JCategoryLog implements Log { category = Category.getInstance(name); } + /** For use with a log4j factory + */ + public Log4JCategoryLog(Category category ) { + this.category=category; + } + // ---------------------------------------------------------- Implmentation