[logback-user] Replicated log entries with RollingFileAppender

Silvano Maffeis silvano at maffeis.com
Tue May 4 15:53:44 CEST 2010


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20100504/c4f11ee6/attachment.html>


More information about the Logback-user mailing list