[
https://issues.apache.org/jira/browse/LOG4J2-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791513#comment-13791513
]
Woonsan Ko commented on LOG4J2-419:
-----------------------------------
Oliver's patch in LOG4J-418 should work more efficiently for map pattern
converters, but the goodness of the feature with LANG-893 is we can use it more
widely. e.g, file path configurations or routing appender configuration, etc.
> Support default value for missing key in look ups with fallbacking to looking
> in the properties map
> ---------------------------------------------------------------------------------------------------
>
> Key: LOG4J2-419
> URL: https://issues.apache.org/jira/browse/LOG4J2-419
> Project: Log4j 2
> Issue Type: Improvement
> Reporter: Woonsan Ko
> Priority: Minor
>
> It is more useful and flexible to allow default value in the variable
> expression itself.
> For example, ${var1:-defvalue1}, ${ctx:request_id:-defvalue2}, etc.
> This generic feature has been included in StrSubstitutor of commons-lang3 as
> well with the following issue:
> - https://issues.apache.org/jira/browse/LANG-893
> The benefit from the feature with LANG-893 is we can use it more widely
> whenever used in look ups.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]