[
https://issues.apache.org/jira/browse/LOG4J2-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Woonsan Ko closed LOG4J2-419.
-----------------------------
Thank you so much for applying the patch!
Everything seems very fine.
Cheers,
Woonsan
> 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
> Fix For: 2.0-rc2
>
> Attachments: LOG4J2-419-patch.txt
>
>
> It is more useful and flexible to allow default value in the variable
> expression itself.
> For example,
> {code}
> ${var1:-defvalue1},
> ${ctx:request_id:-defvalue2}, etc.
> {code}
> 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.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]