Adam created LOGBACK-1504: ----------------------------- Summary: Logback has wrong index after restart Key: LOGBACK-1504 URL: https://jira.qos.ch/browse/LOGBACK-1504 Project: logback Issue Type: Bug Components: logback-classic Affects Versions: 1.3.0-alpha5 Reporter: Adam Assignee: Logback dev list
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: {quote}log.2020-02-11.*1000*1711696676266552.tmp log.2020-02-11.*1001*1711696691083474.tmp {quote} last rolling file was: {quote}log.2020-02-11.*2831*.gz log.2020-02-11.*2832*.gz {quote} 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] }} -- This message was sent by Atlassian JIRA (v7.3.1#73012) _______________________________________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev