Fixed bug 150 by implementing missing resetConfiguration() and
shutdown() methods in LogManager (in log4j-over-slf4j) as nop. In
addition, the getCurrentLoggers() method has been implemented by
returning an empty enumeration.
diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java
index 3c498be..fc0332e 100644
--- a/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java
+++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java
@@ -16,6 +16,9 @@
*/
package org.apache.log4j;
+import java.util.Enumeration;
+import java.util.Vector;
+
/**
* <p>
* This class is a minimal implementation of the original
@@ -42,4 +45,25 @@
public static Logger getLogger(final Class clazz) {
return Log4jLoggerFactory.getLogger(clazz.getName());
}
+
+
+ /**
+ * This bogus implementation returns an empty enumeration.
+ * @return
+ */
+ public static Enumeration getCurrentLoggers() {
+ return new Vector().elements();
+ }
+
+ /**
+ * Implemented as NOP.
+ */
+ public static void shutdown() {
+ }
+
+ /**
+ * Implemented as NOP.
+ */
+ public static void resetConfiguration() {
+ }
}
diff --git a/slf4j-site/src/site/pages/news.html b/slf4j-site/src/site/pages/news.html
index b5a8c71..32626ae 100644
--- a/slf4j-site/src/site/pages/news.html
+++ b/slf4j-site/src/site/pages/news.html
@@ -27,7 +27,22 @@
<hr noshade="noshade" size="1"/>
- <h3>February 25th, 2010 - Release of SLF4J 1.5.11</h3>
+ <h3>April Xth, 2010 - Release of SLF4J 1.6.0</h3>
+
+ <p>Fixed <a
+ href="http://bugzilla.slf4j.org/show_bug.cgi?id=150">bug 150</a> by
+ implementing missing <code>resetConfiguration()</code> and
+ <code>shutdown()</code> methods in <code>LogManager</code> (in
+ log4j-over-slf4j) as nop. In addition, the
+ <code>getCurrentLoggers()</code> method has been implemented by
+ returning an empty enumeration.
+ </p>
+
+
+
+ <hr noshade="noshade" size="1"/>
+
+ <h3>February 25th, 2010 - Release of SLF4J 1.5.11</h3>
<p>Users yet unfamiliar with SLF4J sometimes unknowingly place both