Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1504

Logback has wrong index after restart

    XMLWordPrintable

Details

    Description

      Helloo. I have problem with Logback (1.2.3, 1.3.0-alpha-5)

      The problem is then after restart application Logback not rolling files greather then 1000 index. Occurs files tmp.

      Example:

      log.2020-02-11.*1000*1711696676266552.tmp

      log.2020-02-11.*1001*1711696691083474.tmp

      last rolling file was:

      log.2020-02-11.2831.gz

      log.2020-02-11.2832.gz

      In my opinion logback always try increment index from 1000 but should be 2833.

      config:

      {{ <appender name="DEBUG_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${PANIQUE_ROOT}/logs/log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>${APP_ROOT}/logs/log.%d.%i.gz</fileNamePattern> <maxFileSize>100MB</maxFileSize> </rollingPolicy> <encoder> <pattern>%date [%thread] %X{PROCESS_ID} %-5level %logger{25} - %msg%n</pattern> </encoder> </appender>

      https://stackoverflow.com/questions/60167669/logback-has-wrong-index-after-restart
      }}

      Attachments

        Activity

          People

            logback-dev Logback dev list
            Lasota Adam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: