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

SizeAndTimeBasedRollingPolicy does not delete old files with MaxHistory

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.3.0-alpha5
    • logback-core

    Description

      The policy will not delete files older than a month, and shows other inconsistent behavior.

      e.g. 20210429_agent_0.log will never be deleted. 

      It will also sometimes not remove any files at all, as you can see from the rest of the logs from May <-> 05.

      To reproduce you can use the same policy as in the environment, and just copy and paste the same file as in the format with a date that goes a month or more back, they will not be removed.

       

      Attachments

        Activity

          People

            logback-dev Logback dev list
            david.g123 David Goichman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: