[logback-dev] [JIRA] Resolved: (LBCORE-221) Error in FileNamePattern::toRegex for index (Integer)
Ceki Gulcu (JIRA)
noreply-jira at qos.ch
Wed Apr 25 23:49:26 CEST 2012
[ http://jira.qos.ch/browse/LBCORE-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ceki Gulcu resolved LBCORE-221.
-------------------------------
Fix Version/s: 1.0.2
Resolution: Fixed
Fixed in http://github.com/ceki/logback/commit/608ed4c58717296
> Error in FileNamePattern::toRegex for index (Integer)
> -----------------------------------------------------
>
> Key: LBCORE-221
> URL: http://jira.qos.ch/browse/LBCORE-221
> Project: logback-core
> Issue Type: Bug
> Components: Pattern, Rolling
> Affects Versions: 0.9.29
> Reporter: Dieter Mueller
> Assignee: Logback dev list
> Priority: Minor
> Fix For: 1.0.2
>
>
> Deletion of old archived logs on rolling failes for index > 99.
> We have a process which logs much, which results in more than 99 log files per day (config below), e.g.
> snowball_POLL_MSG_SRV_xdebug-old-2011-09-13.110.log.zip.
> On rolling event, only the first 99 were deleted, due to bug in
> FileNamePattern::toRegex for index (Integer):
> regEx: \d{1,2)
> which means digits with max length of 2.
> We need at least 3 digits:
> regEx: \d{1,3)
> better 4? ;-)
> Workarounds like increasing file size, or hourly-rollover to hold index lower than 100 are not very wellcomed.
> Thanks in advance,
> Dieter Mueller.
> config:
> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
> <!-- rollover daily -->
> <fileNamePattern>${log.vm.file.prefix}_xdebug-old-%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
> <maxHistory>1</maxHistory>
> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
> <maxFileSize>20MB</maxFileSize>
> </timeBasedFileNamingAndTriggeringPolicy>
> </rollingPolicy>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list