[LOGBack-dev] svn commit: r265 - logback/core/trunk/src/main/java/ch/qos/logback/core/util

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Jul 25 10:34:52 CEST 2006


Author: seb
Date: Tue Jul 25 10:34:51 2006
New Revision: 265

Modified:
   logback/core/trunk/src/main/java/ch/qos/logback/core/util/StatusPrinter.java
Log:
displaying a message even if there's no errors

Modified: logback/core/trunk/src/main/java/ch/qos/logback/core/util/StatusPrinter.java
==============================================================================
--- logback/core/trunk/src/main/java/ch/qos/logback/core/util/StatusPrinter.java	(original)
+++ logback/core/trunk/src/main/java/ch/qos/logback/core/util/StatusPrinter.java	Tue Jul 25 10:34:51 2006
@@ -17,6 +17,10 @@
 public class StatusPrinter {
 
   public static void print(StatusManager sm) {
+  	if(sm.getCount() == 0) {
+  		 System.out.println("This status manager contains no errors.");
+  		return;
+  	}
     Iterator it = sm.iterator();
     while(it.hasNext()) {
       Status s = (Status) it.next();



More information about the logback-dev mailing list