commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging/impl Log4JCategoryLog.java
Date Sat, 23 Nov 2002 03:25:34 GMT
craigmcc    2002/11/22 19:25:33

  Modified:    logging/src/java/org/apache/commons/logging/impl
                        Log4JCategoryLog.java
  Log:
  Add a getCategory() method that returns the underlying Log4J Category
  instance, analogous to the getLogger() method on JDK14Logger.
  
  PR:  Bugzilla 14155
  Submitted by:  Chris Hagmann <ch at ipin.com>
  
  Revision  Changes    Path
  1.7       +12 -4     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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Log4JCategoryLog.java	7 Jun 2002 00:22:54 -0000	1.6
  +++ Log4JCategoryLog.java	23 Nov 2002 03:25:33 -0000	1.7
  @@ -238,6 +238,14 @@
   
   
       /**
  +     * Return the native Category instance we are using.
  +     */
  +    public Category getCategory() {
  +        return (this.category);
  +    }
  +
  +
  +    /**
        * Check whether the Log4j Category used is enabled for <code>DEBUG</code>
priority.
        */
       public boolean isDebugEnabled() {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message