http://stackoverflow.com/questions/30617268/logback-error-while-server-startup

 

logback error while server startup

The following is my logback file

 

 

Just add a counter %i to the FileNamePattern whenever you use a MaxFileSize.
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
    <FileNamePattern>${catalina.base}/logs/email/email_%d{yyyy-MM-dd}_%i.zip
    </FileNamePattern>
    <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
         <maxFileSize>1KB</maxFileSize>
    </timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>

====================================================================================================

http://jira.qos.ch/browse/LOGBACK-958

 

[LOGBACK-958] Prevent IndexOutOfBoundsException caused by misconfiguration - QOS.ch JIRA

I ran into exactly this http://tonaconsulting.com/error-in-ch-qos-logback-core-joran-spi-interpreter2325-runtimeexception-in-action-for-tag-rollingpolicy-java-lang-indexoutofboundsexception-no-group-1/ (apparently someone else too) and believe that it coul

jira.qos.ch

 

 

Posted by 張's blog
,