Franz van Betteraey created LOG4J2-1861:
-------------------------------------------
Summary: Fix JavaDoc on org.apache.logging.log4j.ThreadContext
(about inheritance)
Key: LOG4J2-1861
URL: https://issues.apache.org/jira/browse/LOG4J2-1861
Project: Log4j 2
Issue Type: Documentation
Components: API
Affects Versions: 2.8.1
Reporter: Franz van Betteraey
Priority: Trivial
The
[JavaDoc|https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/ThreadContext.html]
of org.apache.logging.log4j.ThreadContext describes the behavior regarding
inheritance as follows:
{quote}
A child thread automatically inherits a copy of the mapped diagnostic context
of its parent.
{quote}
But the behavior was changed in LOG4J2-479. Now the system property
_isThreadContextMapInheritable_ has to be set to _true_ to enforce this
behavior (see
[documentation|https://logging.apache.org/log4j/2.x/manual/thread-context.html]).
This should be corrected in the JavaDoc of ThreadContext.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]