[logback-user] Rolling not working from raid10 to raid5

Krishna Prasad krishna.prasad at flytxt.com
Mon Nov 26 09:31:22 CET 2012


Hi All,
Any Help.....?

Thanks & Regards,
Krishnaprasad

________________________________________
From: Krishna Prasad
Sent: Tuesday, November 20, 2012 8:21 AM
To: logback-user at qos.ch
Subject: Rolling not working from raid10 to raid5

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


More information about the Logback-user mailing list