Nick Dimiduk created LOG4J2-3660:
------------------------------------

             Summary: PatternLayout %notEmpty should consider an MDC with no 
keys as empty
                 Key: LOG4J2-3660
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3660
             Project: Log4j 2
          Issue Type: Improvement
    Affects Versions: 2.17.2
            Reporter: Nick Dimiduk


Introducing MDC logging over on HBASE-27762, we noticed an annoyance when 
writing a patter to ship by default. When the MDC contains no keys, 
{{%notEmpty}} still considers it as non-empty and renders as "{}". I expected 
that {{notEmpty}} would consider the absence of any keys in the MDC as an empty 
object.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to