logback / LOGBACK-1763 [Open] izeAndTimeBasedRollingPolicy not removing old files when aux is used
============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1763 ============================== Issue created ------------------------------ Bjørn-Willy Arntzen created this issue on 25/Aug/23 17:50 Summary: izeAndTimeBasedRollingPolicy not removing old files when aux is used Issue Type: Bug Affects Versions: 1.2.11 Assignee: Logback dev list Created: 25/Aug/23 17:50 Environment: Spring boot 2.7 with logback 2.11 Priority: Major Reporter: Bjørn-Willy Arntzen Description: Using this appender, the files are not deleted. It works without the aux date, but in my case the aux date is very important. <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>c:/temp/logs/spring-FILE-boot.%d\{yyyy-MM-dd} - %-3i - %d\{HH.mm.ss, aux}.log</fileNamePattern> <maxFileSize>500KB</maxFileSize> <maxHistory>5</maxHistory> <totalSizeCap>1MB</totalSizeCap> <cleanHistoryOnStart>true</cleanHistoryOnStart> </rollingPolicy> <encoder> <pattern>%-20(%d\{dd.MM.yyyy HH:mm:ss.SSS} [%-20thread]) %-5level %msg [%logger:%line]%n</pattern> </encoder> </appender> ============================== This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af) _______________________________________________ logback-dev mailing list logback-dev@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev