Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2197

Document default property value support

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 2.10.0
    • Fix Version/s: None
    • Component/s: Lookups
    • Labels:

      Description

      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...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fabdouglas Fabrice Daugan
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: