[logback-dev] [JIRA] Commented: (LBCORE-214) Error in FileNamePatter::toRegex
Ceki Gulcu (JIRA)
noreply-jira at qos.ch
Mon Jul 18 22:18:52 CEST 2011
[ http://jira.qos.ch/browse/LBCORE-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12062#action_12062 ]
Ceki Gulcu commented on LBCORE-214:
-----------------------------------
Hello Derek,
I reckon that the downside of not generating the correct regex, is that the archive remover fails to match for the correct files and does not delete them. Is that correct?
> Error in FileNamePatter::toRegex
> --------------------------------
>
> Key: LBCORE-214
> URL: http://jira.qos.ch/browse/LBCORE-214
> Project: logback-core
> Issue Type: Bug
> Affects Versions: 0.9.24
> Environment: Linux
> Reporter: Derek Libby
> Assignee: Ceki Gulcu
>
> Using a file name pattern of the form:
> roll.log.%d{yyyy-MM-dd'T'HH:mm:ss}.gz
> results in a regular expression of:
> roll.log.\\d{4}-\\d{2}-\\d{2}'T'\\d{2}:\\d{2}:\\d{2}.gz
> which has the unfortunate property that it does not match the actual file names which get generated:
> roll.log.2011-07-11T16:42:28.gz
--
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