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

OnStartupTriggeringPolicy rolls over on every reconfiguration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2
    • Component/s: Appenders
    • Labels:
      None

      Description

      The OnStartupTriggeringPolicy was modified to roll over when the configuration is processed instead of waiting for the first log event and to only roll over if the file is not emoty. This leads to two issues:

      1. The roll over is only supposed to occur when Log4j is configured for the first time in the JVM.
      2. The user may have wanted to roll over empty files.

        Attachments

          Activity

            People

            • Assignee:
              ralph.goers@dslextreme.com Ralph Goers
              Reporter:
              ralph.goers@dslextreme.com Ralph Goers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: