George Yanev created LOGBACK-1500: ------------------------------------- Summary: SizeAndTimeBasedRollingPolicy misbehavior after %i index reaches 999 Key: LOGBACK-1500 URL: https://jira.qos.ch/browse/LOGBACK-1500 Project: logback Issue Type: Bug Components: logback-classic, logback-core Affects Versions: 1.2.3 Environment: OS: Ubuntu 18.04.4 LTS
java: java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode) Reporter: George Yanev Assignee: Logback dev list Attachments: logback-test.rar I'm using SizeAndTimeBasedRollingPolicy. When '%i' file index reaches 999 it stops deleting the old files and totalSizeCap is not respected any more. This soon leads to disk full issues (as logging in my case was fast enough) I'm attaching a java example with a simple logging configuration to demonstrate this. You have to run it just for a couple off minutes to reach file index 999 Use maven install to build. Untar the generated tar.gz file to some place and run the example with java -jar testartifact-1.0.0-20200206.jar -- 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