You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@apache.org on 2002/02/15 04:54:19 UTC

cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging/impl Log4JCategoryLog.java

costin      02/02/14 19:54:19

  Modified:    logging/src/java/org/apache/commons/logging/impl
                        Log4JCategoryLog.java
  Log:
  Add the second constructor to be used with Log4jFactory.
  
  Make it final ( so the indirection can be optimized by jits )
  
  Revision  Changes    Path
  1.2       +11 -5     jakarta-commons/logging/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java
  
  Index: Log4JCategoryLog.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Log4JCategoryLog.java	3 Feb 2002 01:31:29 -0000	1.1
  +++ Log4JCategoryLog.java	15 Feb 2002 03:54:19 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/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/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/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 @@
    * @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
    * @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 @@
   
   
       /** Log to this category */
  -    Category category = null;
  +    private Category category = null;
   
   
       // ------------------------------------------------------------ Constructor
  @@ -95,6 +95,12 @@
        */
       public Log4JCategoryLog(String name) {
           category = Category.getInstance(name);
  +    }
  +
  +    /** For use with a log4j factory
  +     */
  +    public Log4JCategoryLog(Category category ) {
  +        this.category=category;
       }
   
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>