[ 
https://issues.apache.org/jira/browse/LOG4J2-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185592#comment-15185592
 ] 

Matt Sicker commented on LOG4J2-916:
------------------------------------

Do you have an updated solution for this? RollingFileManager has diverged a bit 
since you supplied the patch.

> Logfile contains information written before last rollover
> ---------------------------------------------------------
>
>                 Key: LOG4J2-916
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-916
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1
>            Reporter: Daniel Stuckert
>            Priority: Minor
>         Attachments: LOG4J2_916.diff
>
>
> When using a RollingFileAppender with the option append = false the contents 
> of the logfile is not cleared.
> New information is written to the beginning of the file and overwrites all 
> information that was written before the last rollover. If the previous file 
> is larger than the current file, information will be kept.
> The file should be cleared/deleted after rollover when the option "append" is 
> set to false.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to