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> git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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.6 2002/06/07 00:22:54 costin Exp $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2002/06/07 00:22:54 $
|
||||
* $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 $
|
||||
*
|
||||
* ====================================================================
|
||||
*
|
||||
@@ -75,7 +75,7 @@ import java.util.Enumeration;
|
||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||
* @author Rod Waldhoff
|
||||
* @author Robert Burrell Donkin
|
||||
* @version $Id: Log4JCategoryLog.java,v 1.6 2002/06/07 00:22:54 costin Exp $
|
||||
* @version $Id: Log4JCategoryLog.java,v 1.7 2002/11/23 03:25:33 craigmcc Exp $
|
||||
*/
|
||||
public final class Log4JCategoryLog implements Log {
|
||||
|
||||
@@ -237,6 +237,14 @@ public final class Log4JCategoryLog implements Log {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user