[slf4j-dev] svn commit: r1083 - slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j
ceki at slf4j.org
ceki at slf4j.org
Thu Jul 31 15:44:43 CEST 2008
Author: ceki
Date: Thu Jul 31 15:44:42 2008
New Revision: 1083
Modified:
slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
Log:
- added getInstance methods to the Category class
This fixes bug 95, http://bugzilla.slf4j.org/show_bug.cgi?id=95
Modified: slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
==============================================================================
--- slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java (original)
+++ slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java Thu Jul 31 15:44:42 2008
@@ -55,6 +55,14 @@
}
}
+ public static Logger getInstance(Class clazz) {
+ return getLogger(clazz);
+ }
+
+ public static Logger getInstance(String name) {
+ return getLogger(name);
+ }
+
public static Logger getLogger(String name) {
return Log4jLoggerFactory.getLogger(name);
}
More information about the slf4j-dev
mailing list