[logback-dev] svn commit: r1099 - logback/trunk/log4j-bridge/src/main/java/org/apache/log4j

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Dec 18 11:07:06 CET 2006


Author: seb
Date: Mon Dec 18 11:07:05 2006
New Revision: 1099

Added:
   logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/BasicConfigurator.java

Log:
Added a BasicConfigurator class

Added: logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/BasicConfigurator.java
==============================================================================
--- (empty file)
+++ logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/BasicConfigurator.java	Mon Dec 18 11:07:05 2006
@@ -0,0 +1,17 @@
+package org.apache.log4j;
+
+import org.slf4j.LoggerFactory;
+
+import ch.qos.logback.classic.LoggerContext;
+
+public class BasicConfigurator {
+
+  static public void configure() {
+    ch.qos.logback.classic.BasicConfigurator.configureDefaultContext();
+  }
+
+  public static void resetConfiguration() {
+    LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
+    lc.shutdownAndReset();
+  }
+}



More information about the logback-dev mailing list