You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by cr...@apache.org on 2002/11/23 04:25:34 UTC
cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging/impl Log4JCategoryLog.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>