You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "liuzhongkai (JIRA)" <ji...@apache.org> on 2019/01/21 06:20:00 UTC

[jira] [Created] (LOG4J2-2536) -> value is output as is

liuzhongkai created LOG4J2-2536:
-----------------------------------

             Summary: <JsonLayout> -> <KeyValuePair> value is output as is
                 Key: LOG4J2-2536
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2536
             Project: Log4j 2
          Issue Type: New Feature
          Components: Layouts
    Affects Versions: 2.11.1
            Reporter: liuzhongkai


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.



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