[logback-dev] svn commit: r2185 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus

noreply.ceki at qos.ch noreply.ceki at qos.ch
Fri Mar 6 16:20:10 CET 2009


Author: ceki
Date: Fri Mar  6 16:20:09 2009
New Revision: 2185

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/Corpus.java

Log:
flush before exit

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/Corpus.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/Corpus.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/Corpus.java	Fri Mar  6 16:20:09 2009
@@ -77,7 +77,7 @@
    * @param targetFile
    * @throws IOException
    */
-  public void dump(ILoggingEvent[] eventArray, String targetFile)
+  public static void dump(ILoggingEvent[] eventArray, String targetFile)
       throws IOException {
     FileWriter fw = new FileWriter(targetFile);
     for (ILoggingEvent e : eventArray) {
@@ -88,6 +88,8 @@
         fw.write(ThrowableProxyUtil.asString(tp));
       }
     }
+    fw.flush();
+    fw.close();
   }
 
 }


More information about the logback-dev mailing list