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

SizeAndTimeBasedRollingPolicy doesnt work with the totalSizeCap limit on the same day

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.10
    • Fix Version/s: None
    • Component/s: logback-core
    • Labels:
      None
    • Environment:

      Linux  2.6.32-642.13.1.el6.x86_64 #1 SMP Wed Jan 11 20:56:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

      openjdk version "1.8.0_121"
      OpenJDK Runtime Environment (build 1.8.0_121-b13)

      janino 2.7.8

       

      Description

      I use logback.xml and a logback-prod.xml with conditionnal janino library

      Today, in production, we have an issue and consequently, the application create a huge logs.

      The current file is nearly 10MB as I exepected. But it create a lot of .tar.gz and the total size was 36GB ... i have set 100MB in the totalSizeCap parameter.

      It seems it's working if we have few logs per day, but, in the same day, the totalSizeCap seems not working with huge logs (36GB :-/)

       

       

       

        Attachments

        1. logback.xml
          0.4 kB
        2. logback-prod.xml
          1 kB

          Issue Links

            Activity

              People

              Assignee:
              logback-dev Logback dev list
              Reporter:
              harelj Jérémie Harel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: