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

Logback is unable to recognize variable substitution for scanPeriod property

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.7
    • 0.9.30
    • logback-classic
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: