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 2015/07/07 14:50:06 UTC

[jira] [Resolved] (LOG4J2-889) RollingRandomAccessFileAppender appends the header every time the application is started.

     [ https://issues.apache.org/jira/browse/LOG4J2-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma resolved LOG4J2-889.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4

Fixed in commit 547574f9.

> RollingRandomAccessFileAppender appends the header every time the application is started.
> -----------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-889
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-889
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0.2
>         Environment: Windows 8
>            Reporter: Kenneth Leider
>            Assignee: Remko Popma
>            Priority: Minor
>             Fix For: 2.4
>
>
> It looks like the problem is at RollingRandomAccessFileManager.java:58.  
> I think there needs to be a check to see if the file is empty before appending the header
>   if (raf.length() == 0) writeHeader();



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