[logback-dev] [JIRA] Created: (LBCORE-153) Replicated log entries with RollingFileAppender

Silvano Maffeis (JIRA) noreply-jira at qos.ch
Fri May 14 08:52:16 CEST 2010


Replicated log entries with RollingFileAppender
-----------------------------------------------

                 Key: LBCORE-153
                 URL: http://jira.qos.ch/browse/LBCORE-153
             Project: logback-core
          Issue Type: Bug
          Components: Rolling
    Affects Versions: 0.9.18
         Environment: JDK 6, Windows 2008 Server
            Reporter: Silvano Maffeis
            Assignee: Logback dev list
            Priority: Critical


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>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list