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

Logback is unable to recognize variable substitution for scanPeriod property

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.30
    • Fix Version/s: 1.0.7
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      It seems like Logback is unable to recognize variable substitution for certain properties.

      For example the scanPeriod property:

      Logback configuration:

      <configuration scan="$

      {scan:-true}

      " scanPeriod="$

      {scan-interval:-10 minutes}

      ">
      Specified to take default value of 10 minutes of logback property is not defined.

      Logback properties:

      scan=true
      scan-interval=30 seconds
      This property should override the default configuration of 10 minutes.

      Logback error:
      java.lang.IllegalArgumentException: String value [$

      {scan-interval:-10 minutes}

      ] is not in the expected format.

      According to the Duration API, the duration format is correct.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              chinboon Oh Chin Boon
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: