Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-184

Error in FileNamePatter::toRegex

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              dlibby00 Derek Libby
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: