You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2013/10/10 16:08:42 UTC
[jira] [Created] (LOG4J2-419) Support default value for missing key
in look ups with fallbacking to looking in the properties map
Woonsan Ko created LOG4J2-419:
---------------------------------
Summary: 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org