logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-889) RollingRandomAccessFileAppender appends the header every time the application is started.
Date Tue, 07 Jul 2015 12:50:06 GMT

     [ 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


Mime
View raw message