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

<JsonLayout> -> <KeyValuePair> value is output as is

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11.1
    • None
    • Layouts
    • None

    Description

      Use the function of the ${} placeholder in <KeyValuePair> value to output the relevant value when there is a value defined by ${} in the context. If not, it will be output as it is. In <PatternLayout> pattern, you can use %X{} to exist. If the output related value does not exist, it is an empty string. There is no such function in KeyValuePair.

      Attachments

        Activity

          People

            Unassigned Unassigned
            liuzhongkai liuzhongkai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: