Another issue--the one responsible for the exception posted:

<fileNamePattern>C:/Logs/someInfoLog.log.%d{'.'yyyy-MM-dd}</fileNamePattern>

Should probably be:

<fileNamePattern>C:/Logs/someInfoLog.log.%d{yyyy-MM-dd}</fileNamePattern>


Sorry to say this, but the sample you posted is very sloppy. I would suggest you clean it up simplify it until you get straight on how to configure the rolling policy. It works great for me. Here is a sample of one of my appender definitions which works flawlessly:

<appender name="default" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <append>true</append>
    <file>${logging.log_dir}/${contextName}.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <cleanHistoryOnStart>true</cleanHistoryOnStart>
      <maxHistory>${logging.appender_max_file_history:-1}</maxHistory>
      <fileNamePattern>${logging.log_archive_dir}/${contextName}.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
      <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
        <maxFileSize>${logging.appender_max_file_size}</maxFileSize>
      </timeBasedFileNamingAndTriggeringPolicy>
    </rollingPolicy>
    <encoder class="${logging.encoder.default}" />
  </appender>


On Fri, Mar 7, 2014 at 11:07 AM, Chandraprakash <chandraprakash.kalwar@gmail.com> wrote:
Dear Troy, Thanks for your reply. I have made the changes and will test it now. Still I have two doubts: 1. why files are '.tmp' when I have provide '.zip' extension? 2. Why log file size is limited to around 20 MB, wherever I have given limit to 25 MB? generated logs

View this message in context: Re: Logback Rolling policy issue.
Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user