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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Tue Sep 30 12:21:37 CEST 2008


Author: ceki
Date: Tue Sep 30 12:21:37 2008
New Revision: 1818

Modified:
   logback-demo/trunk/src/main/java/ch/qos/logback/demo/util/EnhancedStatusPrinter.java

Log:
adapt to latest version of logback 

Modified: logback-demo/trunk/src/main/java/ch/qos/logback/demo/util/EnhancedStatusPrinter.java
==============================================================================
--- logback-demo/trunk/src/main/java/ch/qos/logback/demo/util/EnhancedStatusPrinter.java	(original)
+++ logback-demo/trunk/src/main/java/ch/qos/logback/demo/util/EnhancedStatusPrinter.java	Tue Sep 30 12:21:37 2008
@@ -3,7 +3,9 @@
 import java.io.PrintWriter;
 import java.io.StringWriter;
 import java.text.SimpleDateFormat;
+
 import java.util.Iterator;
+import java.util.List;
 
 import ch.qos.logback.classic.pattern.ClassNameAbbreviator;
 import ch.qos.logback.core.status.Status;
@@ -48,7 +50,8 @@
   
   public static void print(StringBuffer buf, StatusManager sm) {
 
-    Iterator it = sm.iterator();
+    List<Status> statusList = sm.getCopyOfStatusList();
+    Iterator it = statusList.iterator();
     while (it.hasNext()) {
       Status s = (Status) it.next();
       print(buf, "", s);


More information about the logback-dev mailing list