Carsten Röttgers created LOGBACK-1277:
-----------------------------------------

             Summary: Capping log files does not work with large log file base
                 Key: LOGBACK-1277
                 URL: https://jira.qos.ch/browse/LOGBACK-1277
             Project: logback
          Issue Type: Bug
          Components: logback-core
    Affects Versions: 1.1.10
            Reporter: Carsten Röttgers
            Assignee: Logback dev list


I am using SizeAndTimeBasedRollingPolicy and I was wondering why logback 
ignores my totalSizeCap settings. totalSizeCap was set to 5GB and the total 
size of my log files was about 8GB. I started my application (a Spring Boot 
Application) and no files were removed. When testing with smaller settings 
(256MB totalSizeCap) files were removed as expected.

So I debugged TimeBasedArchiveRemover.capTotalSize and found out that totalSize 
got negative. Making totalSize (and totalRemoved) long instead of int should 
fix the problem.



--
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

Reply via email to