[logback-user] Configure RollingFileAppender to keep a back up of Fifty log files in Logback

Govardhana jgovardhana at gmail.com
Thu Jul 18 13:24:41 CEST 2013


Hi David,

Have referred the above link which you mentioned but i am not able to get
the exact information  which i am looking for.

I have used "FixedWindowRollingPolicy", and this supports up to 13 log
files, after that it is rolls over the existing files 

Below is my configuration:

        <rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <FileNamePattern>myLog.log.%i</FileNamePattern>
           * <maxIndex>50</maxIndex>*
        </rollingPolicy>

Note: Log file name pattern should be myLog.log.1.

Regards,
Reddy



--
View this message in context: http://logback.10977.n7.nabble.com/Configure-RollingFileAppender-to-keep-a-back-up-of-Fifty-log-files-in-Logback-tp12701p12703.html
Sent from the Users mailing list archive at Nabble.com.


More information about the Logback-user mailing list