[logback-dev] [JIRA] Commented: (LBCORE-223) Add Case Insensitive Contains Predicate to Joran

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Thu Sep 22 17:17:16 CEST 2011

    [ http://jira.qos.ch/browse/LBCORE-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12138#action_12138 ] 

Ceki Gulcu commented on LBCORE-223:

See [1] . The relevant text is:

The condition is a Java expression in which only context properties or system properties are accessible. For a key passed as argument, the property() or its shorter equivalent p() methods return the String value of the property. For example, to access the value of a property with key "k", you would write property("k") or equivalently p("k"). If the property with key "k" is undefined, the property method will return the empty string and not null. This avoids the need to check for null values. If you need to check whether a property is null, the isNull() method is provided. For example, you can write isNull("k").

In short, property and p are all the "commands". They return strings with all the methods associated with strings.

[1] http://logback.qos.ch/manual/configuration.html#conditional

> Add Case Insensitive Contains Predicate to Joran
> ------------------------------------------------
>                 Key: LBCORE-223
>                 URL: http://jira.qos.ch/browse/LBCORE-223
>             Project: logback-core
>          Issue Type: Improvement
>          Components: Joran
>    Affects Versions: 0.9.30
>            Reporter: Gordon Dickens
>            Assignee: Logback dev list
>            Priority: Minor
> As a developer, it would be helpful to have evaluate a property value with case insensitivity.  This issue became apparent when importing properties from a file where a property's value could be true or false.  Here another person may put in TRUE or FALSE.  To circumvent this, I have to include a comment.

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