Dear sir,

     Yesterday night, i tried TimeBasedRollingPolicy class to logs the my
code part.
 i used below configuration code in XML and after, used a single Thread to
runs full night...
     
     When i see today morning, file created (myDebug.2009-04-02.zip)
successfully. i extracted zip file after i verified yesterday log file.

     But, When see a current log file it keeps both logs (means yesterday
and today logs). Actually this current log should contain today log only...
i don't where am doing problem.... 

     Please HELP me out...


        <appender name="FILEDEBUG"
class="ch.qos.logback.core.rolling.RollingFileAppender"> 
                <file>Debug/myDebug.log</file>
                
                <rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">  
                        <FileNamePattern>myDebug.%d.zip</FileNamePattern>  
                        <MaxHistory>60</MaxHistory>  
                </rollingPolicy>
                 
                <filter class="ch.qos.logback.classic.filter.LevelFilter">
                        <level>DEBUG</level>
                        <onMatch>ACCEPT</onMatch>
                        <onMismatch>DENY</onMismatch>
                </filter> 
        
                <layout class="ch.qos.logback.classic.PatternLayout">
                        <Pattern>%date %level [%thread] %logger{10} 
[%file:%line]
%msg%n</Pattern>
                </layout>

        </appender>



Thank you,
boss134
-- 
View this message in context: 
http://www.nabble.com/Using-Thread-to-monitored-TimeBasedRollingPolicy...%21-tp22864185p22864185.html
Sent from the Logback Dev mailing list archive at Nabble.com.

_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to