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 "Daniel Stuckert (JIRA)" <ji...@apache.org> on 2014/12/08 09:49:12 UTC
[jira] [Created] (LOG4J2-916) Logfile contains information written
before last rollover
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org