[logback-dev] svn commit: r1405 - logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Mar 5 16:59:41 CET 2007


Author: seb
Date: Mon Mar  5 16:59:41 2007
New Revision: 1405

Modified:
   logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseModuleAction.java

Log:
updated access to ContextSelector

Modified: logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseModuleAction.java
==============================================================================
--- logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseModuleAction.java	(original)
+++ logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseModuleAction.java	Mon Mar  5 16:59:41 2007
@@ -11,6 +11,7 @@
 import org.apache.struts.action.ActionMapping;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.slf4j.impl.StaticLoggerBinder;
 
 import ch.qos.logback.access.jetty.RequestLogImpl;
 import ch.qos.logback.access.jetty.RequestLogRegistry;
@@ -47,8 +48,7 @@
         request.setAttribute(Constants.STATUS, buf.toString());
 
       } else {
-        List<String> contextNames = LoggerFactory.getContextSelector()
-            .getContextNames();
+        List<String> contextNames = StaticLoggerBinder.SINGLETON.getContextSelector().getContextNames();
         request.setAttribute(Constants.CONTEXT_LIST, contextNames);
       }
     }



More information about the logback-dev mailing list