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

Krishna Prasad krishna.prasad at flytxt.com
Tue Nov 20 14:21:19 CET 2012


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