[logback-dev] [JIRA] Created: (LBCLASSIC-307) Logback is unable to recognize variable substitution for scanPeriod property

Oh Chin Boon (JIRA) noreply-jira at qos.ch
Sun Nov 13 12:33:12 CET 2011


Logback is unable to recognize variable substitution for scanPeriod property
----------------------------------------------------------------------------

                 Key: LBCLASSIC-307
                 URL: http://jira.qos.ch/browse/LBCLASSIC-307
             Project: logback-classic
          Issue Type: Bug
          Components: Other
    Affects Versions: 0.9.30
         Environment: Windows 7
            Reporter: Oh Chin Boon
            Assignee: Logback dev list


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.

-- 
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