[
https://issues.apache.org/jira/browse/LOG4J2-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185203#comment-14185203
]
Gary Gregory commented on LOG4J2-886:
-------------------------------------
In your test, this will not work as you expect:
{code:java}
org.apache.logging.log4j.ThreadContext.getContext().put("MDC", "value");
{code}
Please see the Javadoc for ThreadContext.getContext().
Gary
> Not serializing the exception or ThreadContext (MDC)
> ------------------------------------------------------
>
> Key: LOG4J2-886
> URL: https://issues.apache.org/jira/browse/LOG4J2-886
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders, Layouts
> Affects Versions: 2.1
> Reporter: Mark Celano
>
> Not serializing the exception or ThreadContext (MDC) into the serialized
> LogEvent object when using the SerializedLayout for the Socket appender.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]