[
https://issues.apache.org/jira/browse/LOG4J2-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15390801#comment-15390801
]
Gary Gregory commented on LOG4J2-774:
-------------------------------------
Hello [~WIFE_IT],
Do you plan on providing a patch to make the behavior configurable along the
lines of that Remko suggests?
Gary
> NdcPatternConverter breaks Log4j 1.2.x layout
> ---------------------------------------------
>
> Key: LOG4J2-774
> URL: https://issues.apache.org/jira/browse/LOG4J2-774
> Project: Log4j 2
> Issue Type: Bug
> Components: Layouts
> Affects Versions: 2.0.1
> Reporter: Frank Wißmann
> Priority: Minor
> Labels: patch
> Attachments: NdcPatternConverter.java.patch
>
>
> In Log4j 1.2.17 NdcPatternConverter.format() returns an empty string "" or
> the stack messages separated by space "a b c"
> (NDC.DiagnosticContext.fullMessage).
> The PatternLayout \[%20.20x\] results in
> {code}[ ]{code} or {code}[ a b c]{code}.
> In Log4j 2.0.1 NdcPatternConverter.format() returns an unmodified
> Collection.toString() representation: "\[\]" for an empty collection or the
> collection separated by comma "\[a, b, c\]"
> (DefaultThreadContextStack.toString() and
> MutableThreadContextStack.toString()).
> The PatternLayout \[%20.20x\] results in {code}[ []]{code}
> or {code}[ [a, b, c]]{code}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]