You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2016/10/10 23:13:20 UTC
[jira] [Commented] (LOG4J2-1639) Fix
MemoryMappedFileAppender.createAppender() Javadoc for immediateFlush
[ https://issues.apache.org/jira/browse/LOG4J2-1639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15563848#comment-15563848 ]
Remko Popma commented on LOG4J2-1639:
-------------------------------------
(Away from PC) I forgot, what does MemoryMappedFile appender do in its flush() method?
> Fix MemoryMappedFileAppender.createAppender() Javadoc for immediateFlush
> ------------------------------------------------------------------------
>
> Key: LOG4J2-1639
> URL: https://issues.apache.org/jira/browse/LOG4J2-1639
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.1, 2.7
> Reporter: Sridhar Gopinath
> Assignee: Gary Gregory
> Priority: Minor
> Fix For: 2.7.1
>
>
> The documentation for {{org.apache.logging.log4j.core.appender.MemoryMappedFileAppender.createAppender()}} says that the default for {{immediateFlush}} is {{true}}. But the default is actually {{false}} as seen from the source:
> {code:java}
> final boolean isForce = Booleans.parseBoolean(immediateFlush, false);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org