[ https://issues.apache.org/jira/browse/LOG4J2-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185455#comment-14185455 ]
Mark Celano commented on LOG4J2-886: ------------------------------------ I have corrected the code snippet above for the test case for the MDC and agree this works as expected: {code:java} // MDC Stack - Mapped Diagnostic Context org.apache.logging.log4j.ThreadContext.put("MDC", "value"); {code} Issue (maybe a TODO in ThrowableProxy) still surrounding the lack of the throwable within the LogEvent exist within the SocketAppender. Can you explain why this is the case since in other appenders such as the console appender the thowable arrives? > 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: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org