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

zero-padding configuration problem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.13.3
    • 2.18.0
    • Configuration

    Description

      I used the configuration file which set the filePattern like "appender.rolling.filePattern = ${filePath}/server-%04i.log.gz" and "appender.rolling.strategy.max = 500".I wanted to use the zero-padding and keep 500 log files at the same time. But, the log files stopped increasing since the counter reach 100 seems like the configuration 500 not work. 

      In another situation that I used "%i" instead of "%04i", the maxIndex 500 worked normally, so maybe the problem is related to zero-padding.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jasonyu jasonyu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: