[ 
https://issues.apache.org/jira/browse/LOG4J2-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16329105#comment-16329105
 ] 

ASF GitHub Bot commented on LOG4J2-2197:
----------------------------------------

GitHub user fabdouglas opened a pull request:

    https://github.com/apache/logging-log4j2/pull/142

    [LOG4J2-2197] Document default property value support

    Complete the documentation about the default environment and system 
properties syntaxes :
    Updated pages are : 
    - https://logging.apache.org/log4j/2.x/manual/lookups.html
    - https://logging.apache.org/log4j/2.x/manual/configuration.html

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fabdouglas/logging-log4j2 LOG4J2-2197

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/142.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #142
    
----
commit 3198db7338ca4370665222aa368b235fd42e6f3b
Author: Fabrice Daugan <fabrice.daugan@...>
Date:   2018-01-17T17:50:11Z

    [LOG4J2-2197] Document default property value support

----


> Document default property value support
> ---------------------------------------
>
>                 Key: LOG4J2-2197
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2197
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Lookups
>    Affects Versions: 2.10.0
>            Reporter: Fabrice Daugan
>            Priority: Major
>
> As Spring and some other libraries, it would be nice to support default 
> property value. For sample : 
> {{$\{sys:property_name:default_value}}}
> Lookup will return the actual system property value of "property_name" if 
> defined, otherwise "default_value".
> The form without default value would work as normal and return a "null" value 
> when this property is not defined.
> The way of getting the default value will be similar to 
> "ResourceBundleLookup" and both "EnvironmentLookup" and 
> "SystemPropertiesLookup" will benefit this feature.
> Patch incoming...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to