Hi all,

My log file only rolls when I add a '.gz' (compression) to the filename 
pattern. Following is the configuration.

--------------------------------------------------------------
where LOGS is raid10 & LOGS_OLD is raid5
--------------------------------------------------------------

appender which is not working,

       <appender name="impression_log"

                class="ch.qos.logback.core.rolling.RollingFileAppender">

                
<File>${LOGS}/qreda-push-scheduler/analyticData/pushImpressionLog.log

                </File>

                <rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">

                        
<FileNamePattern>${LOGS_OLD}/qreda-push-scheduler/pushImpressionLog.%d{yyyy-MM-dd_HH-mm}.log

                        </FileNamePattern>

                </rollingPolicy>



                <encoder>

                        <Pattern>%msg%n</Pattern>

                </encoder>

        </appender>

appender which works fine, (Only difference is, added .gz)

        <appender name="impression_log"

                class="ch.qos.logback.core.rolling.RollingFileAppender">

                
<File>${LOGS}/qreda-push-scheduler/analyticData/pushImpressionLog.log

                </File>

                <rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">

                        
<FileNamePattern>${LOGS_OLD}/qreda-push-scheduler/pushImpressionLog.%d{yyyy-MM-dd_HH-mm}.log
.gz
                        </FileNamePattern>

                </rollingPolicy>



                <encoder>

                        <Pattern>%msg%n</Pattern>

                </encoder>

        </appender>


Is there something that I missed ?
--------------------------------------
slf4j.version        1.6.4     |
logback.version   1.0.0     |
-------------------------------------


Thanks & Regards,
Krishnaprasad
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to