From e0be9b7850032def5bfbf9b15506c60ebbcba2fd Mon Sep 17 00:00:00 2001 From: "Craig R. McClanahan" Date: Sat, 23 Nov 2002 03:25:33 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138939 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/logging/impl/Log4JCategoryLog.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java b/src/java/org/apache/commons/logging/impl/Log4JCategoryLog.java index 344c6da..9712d15 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.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 Scott Sanders * @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 DEBUG priority. */