logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1463087 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.java
Date Mon, 01 Apr 2013 06:30:31 GMT
Author: rgoers
Date: Mon Apr  1 06:30:31 2013
New Revision: 1463087

URL: http://svn.apache.org/r1463087
Log:
LOG4J2-164 - Add change that was missing from provided patch.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.java?rev=1463087&r1=1463086&r2=1463087&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.java
Mon Apr  1 06:30:31 2013
@@ -113,7 +113,7 @@ public abstract class AbstractOutputStre
             final byte[] bytes = getLayout().toByteArray(event);
             if (bytes.length > 0) {
                 manager.write(bytes);
-                if (this.immediateFlush) {
+                if (this.immediateFlush || event.isEndOfBatch()) {
                     manager.flush();
                 }
             }



Mime
View raw message