Daniel Stuckert created LOG4J2-916:
--------------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to