Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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:
The benefit from the feature with LANG-893 is we can use it more widely whenever used in look ups.
Attachments
Attachments
Issue Links
- relates to
-
LOG4J2-418 Support default value for missing key in map-based pattern
- Open