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

RollingFastFileAppender (in log4j-async) does not roll over

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta5
    • Core
    • None

    Description

      The FastRollingFileManager used by RollingFastFileAppender extends the core RollingFileManager.
      I made a mistake in my implementation of FastRollingFileManager and it does not correctly create a new RandomFile during rollover.

      To fix the issue I need a small change to core.appender.rolling.RollingFileManager#checkRollover(LogEvent):
      inside this method there are two lines where the new FileOutputStream is created and passed to the parent OutputStreamAppender.
      If these two lines can be extracted into a protected method, subclasses like FastRollingFileManager can override and implement their own behaviour.

      Patch to follow soon.

      Attachments

        1. documentation-update-images-20130402.zip
          241 kB
          Remko Popma
        2. LOG4J2-193-with-doc-updates.patch
          37 kB
          Remko Popma

        Activity

          People

            rgoers Ralph Goers
            rpopma Remko Popma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: