[logback-dev] svn commit: r1404 - 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:14 CET 2007


Author: seb
Date: Mon Mar  5 16:59:14 2007
New Revision: 1404

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

Log:
updated access to ContextSelector

Modified: logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseContextAction.java
==============================================================================
--- logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseContextAction.java	(original)
+++ logback-demo/trunk/src/main/java/ch/qos/logback/demo/statii/ChooseContextAction.java	Mon Mar  5 16:59:14 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.classic.LoggerContext;
 import ch.qos.logback.demo.Constants;
@@ -30,12 +31,12 @@
       ChooseContextForm form = (ChooseContextForm) actionForm;
 
       String contextName = form.getContextName();
-      LoggerContext context = LoggerFactory.getContextSelector().getLoggerContext(contextName);
+      LoggerContext context = StaticLoggerBinder.SINGLETON.getContextSelector().getLoggerContext(contextName);
       EnhancedStatusPrinter.print(buf, context.getStatusManager());
       request.setAttribute(Constants.STATUS, buf.toString());
     }
     
-    List<String> contextNames = LoggerFactory.getContextSelector().getContextNames();
+    List<String> contextNames = StaticLoggerBinder.SINGLETON.getContextSelector().getContextNames();
     request.setAttribute(Constants.CONTEXT_LIST, contextNames);
     
     return actionMapping.findForward("next");



More information about the logback-dev mailing list