[logback-dev] svn commit: r1142 - in logback/trunk: log4j-bridge logback-access logback-classic logback-core logback-examples logback-examples/src/main/java/chapter1 logback-examples/src/main/java/chapter5

noreply.seb at qos.ch noreply.seb at qos.ch
Thu Dec 21 11:39:45 CET 2006


Author: seb
Date: Thu Dec 21 11:39:45 2006
New Revision: 1142

Modified:
   logback/trunk/log4j-bridge/   (props changed)
   logback/trunk/logback-access/   (props changed)
   logback/trunk/logback-classic/   (props changed)
   logback/trunk/logback-core/   (props changed)
   logback/trunk/logback-examples/   (props changed)
   logback/trunk/logback-examples/src/main/java/chapter1/MyAppWithConfigFile.java
   logback/trunk/logback-examples/src/main/java/chapter5/CallerEvaluatorExample.java
   logback/trunk/logback-examples/src/main/java/chapter5/ExceptionEvaluatorExample.java
   logback/trunk/logback-examples/src/main/java/chapter5/GoMDC.java

Log:
Auto config canceled when configuring logback in the example classes.

Modified: logback/trunk/logback-examples/src/main/java/chapter1/MyAppWithConfigFile.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter1/MyAppWithConfigFile.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter1/MyAppWithConfigFile.java	Thu Dec 21 11:39:45 2006
@@ -26,6 +26,7 @@
 
     try {
       JoranConfigurator configurator = new JoranConfigurator();
+      lc.shutdownAndReset();
       configurator.setContext(lc);
       configurator.doConfigure(args[0]);
     } catch (JoranException je) {

Modified: logback/trunk/logback-examples/src/main/java/chapter5/CallerEvaluatorExample.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter5/CallerEvaluatorExample.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter5/CallerEvaluatorExample.java	Thu Dec 21 11:39:45 2006
@@ -18,6 +18,7 @@
     try {
       JoranConfigurator configurator = new JoranConfigurator();
       configurator.setContext(lc);
+      lc.shutdownAndReset();
       configurator.doConfigure(args[0]);
     } catch (JoranException je) {
       StatusPrinter.print(lc);

Modified: logback/trunk/logback-examples/src/main/java/chapter5/ExceptionEvaluatorExample.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter5/ExceptionEvaluatorExample.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter5/ExceptionEvaluatorExample.java	Thu Dec 21 11:39:45 2006
@@ -17,6 +17,7 @@
     try {
       JoranConfigurator configurator = new JoranConfigurator();
       configurator.setContext(lc);
+      lc.shutdownAndReset();
       configurator.doConfigure(args[0]);
     } catch (JoranException je) {
       StatusPrinter.print(lc);

Modified: logback/trunk/logback-examples/src/main/java/chapter5/GoMDC.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter5/GoMDC.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter5/GoMDC.java	Thu Dec 21 11:39:45 2006
@@ -19,6 +19,7 @@
     try {
       JoranConfigurator configurator = new JoranConfigurator();
       configurator.setContext(lc);
+      lc.shutdownAndReset();
       configurator.doConfigure("mdcFilter.xml");
       
     } catch (JoranException je) {



More information about the logback-dev mailing list