[logback-user] RollingFileAppender with compress & %i

Ceki Gulcu ceki at qos.ch
Wed Mar 2 07:40:31 CET 2011


Hello Deepak,

Please create a bug report so that this problem can be fixed.
--
Ceki

On 02.03.2011 04:43, DeepakVadgama wrote:
>
> FixedWindowRollingPolicy with compress and %i, always zips the active log
> file and renames the zip
>
> Thus The log files inside all the resulting zips has same log filename.
>
> How do i ensure the log file is renamed with %i before zipping it up?
>
> Eg: FileNamePattern of MyLogFile%i.log.zip
>
> currently results in
> MyLogFile1.log.zip (with log file name MyLogFile.log)
> MyLogFile2.log.zip (with log file name MyLogFile.log)
> MyLogFile3.log.zip (with log file name MyLogFile.log)
>
> I want it to be
> MyLogFile1.log.zip (with log file name MyLogFile1.log)
> MyLogFile2.log.zip (with log file name MyLogFile2.log)
> MyLogFile3.log.zip (with log file name MyLogFile3.log)




More information about the Logback-user mailing list