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

SizeAndTimeBasedRollingPolicy Producing a large number of TMP cannot delete files,and size limited invalid

    XMLWordPrintable

Details

    Description

      <!-- svs api normal log -->
      <appender name="svsNormalAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
      <!-- API LOG OFF
      <filter class="ch.qos.logback.classic.filter.LevelFilter">
      <level>INFO</level>
      <onMatch>DENY</onMatch>
      <onMismatch>DENY</onMismatch>
      </filter>
      -->
      <layout class="ch.qos.logback.classic.PatternLayout">
      <pattern>
      %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
      </pattern>
      </layout>
      <file>${logging_home}/svs-normal.log</file>
      <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
      <fileNamePattern>
      ${logging_backup}/%d{yyyy-MM-dd}/svs-normal.%d{yyyyMMdd}.%i.log.zip
      </fileNamePattern>
      <maxFileSize>500MB</maxFileSize>
      <maxHistory>10</maxHistory>
      </rollingPolicy>
      </appender>

      Attachments

        1. logback.xml
          3 kB
          anjue
        2. xxxxxxx.jpg
          226 kB
          anjue

        Activity

          People

            logback-dev Logback dev list
            zhang anjue
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: