Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.3.0-alpha5
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
}}