Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1511

SizeAndTimeBasedRollingPolicy not honoring value of totalSizeCap

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3
    • logback-core
    • None
    • Linux 3.10.0-1062.12.1.el7.x86_64 x86_64

    Description

      I am using "SizeAndTimeBasedRolling" policy. 
      where below are the values
      <maxFileSize>100MB</maxFileSize>
      <maxHistory>4</maxHistory>
      <totalSizeCap>500MB</totalSizeCap>

      It works perfectly when I have 4 files size 100 of same day.
      It also works perfectly for 4 days history. 
      but it does not remove old file from past date when the over folder size exceed from 500MB.

      attaching logback.xml file. 

      Attachments

        Activity

          People

            logback-dev Logback dev list
            kalpesh kalpesh bandi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: