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

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Fri May 14 09:59:16 CEST 2010


    [ http://jira.qos.ch/browse/LBCORE-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11748#action_11748 ] 

Ceki Gulcu commented on LBCORE-153:
-----------------------------------

No, this is not a known issue. Are the log entries being written to the newly created file and the rotated file identical? Put differently, is it possible that different processes are writing to those files? Are you using SiftingAppender?

> 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