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

Replicated log entries with RollingFileAppender

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • logback-core
    • None
    • JDK 6, Windows 2008 Server

    Description

      Hi

      We use logback 0.9.18 and SLF4J 1.5.10. After monthly log rotation we
      noticed that
      new log entries were being appended both to the newly created file and also
      to the rotated file of the previous
      month. Is this a known issue? Below is the config snippet.

      Regards,
      Silvano

      <appender name="XML"
      class="ch.qos.logback.core.rolling.RollingFileAppender">
      <File>${viperats.logdir}txplugin.xml.log</File>
      <layout class="ch.qos.logback.classic.PatternLayout">
      <pattern>%d

      {yyyy-MM-dd HH:mm:ss}

      %n%msg------------------------------------------------%n</pattern>
      </layout>
      <rollingPolicy
      class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">

      <FileNamePattern>${viperats.logdir}/txplugin.xml.log-%d

      {yyyy-MM}

      </FileNamePattern>
      </rollingPolicy>
      <Append>true</Append>
      </appender>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            maffeis Silvano Maffeis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: