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

RollingRandomAccessFileAppender appends the header every time the application is started.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.4
    • Appenders
    • None
    • 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

              rpopma Remko Popma
              kennethleider Kenneth Leider
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: