Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-889

RollingRandomAccessFileAppender appends the header every time the application is started.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.4
    • Component/s: Appenders
    • Labels:
      None
    • Environment:

      Windows 8

      Description

      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();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                kennethleider Kenneth Leider
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: