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

Rollover max parameter in log4j2.yml is "ignored"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.17.2, 2.20.0
    • None
    • Appenders

    Description

      The rolling file appender only keeps 7 files, regardless of what I configure the max value to in its DefaultRolloverStrategy.

       

      spring-boot 2.7.15 (snakeyaml 1.33, jackson-databind 2.15.2, Java 17)

      Reproduced with log4j2 version 2.17.2 and 2.20.0

       

      Attachments

        1. console.log
          138 kB
          Leo Breuss
        2. log4j2-rollover.zip
          6 kB
          Leo Breuss

        Activity

          People

            Unassigned Unassigned
            lbreuss Leo Breuss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: