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

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Mon Nov 14 08:55:14 CET 2011


     [ http://jira.qos.ch/browse/LBCLASSIC-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu reassigned LBCLASSIC-307:
------------------------------------

    Assignee: Ceki Gulcu  (was: Logback dev list)

> 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: Ceki Gulcu
>
> 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