[logback-dev] [JIRA] Created: (LBCORE-214) Error in FileNamePatter::toRegex

Derek Libby (JIRA) noreply-jira at qos.ch
Tue Jul 12 17:38:52 CEST 2011


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: Logback dev list


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