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

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

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.11.1
    • Fix Version/s: None
    • Component/s: Layouts
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              liuzhongkai liuzhongkai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: