You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2017/04/10 09:00:28 UTC

[03/27] logging-log4j2 git commit: [LOG4J2-1861] Fix ThreadContext javadoc about inheritance

[LOG4J2-1861] Fix ThreadContext javadoc about inheritance


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/000de2cd
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/000de2cd
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/000de2cd

Branch: refs/heads/LOG4J2-1851
Commit: 000de2cde6a745c945e7575313ac6fbe841a4b49
Parents: 5dcc192
Author: Matt Sicker <bo...@gmail.com>
Authored: Sun Apr 2 12:52:49 2017 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Sun Apr 2 12:52:49 2017 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/logging/log4j/ThreadContext.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/000de2cd/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java b/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
index 8b4fa0e..b37b0f9 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
@@ -41,9 +41,10 @@ import org.apache.logging.log4j.util.PropertiesUtil;
 /**
  * The ThreadContext allows applications to store information either in a Map or a Stack.
  * <p>
- * <b><em>The MDC is managed on a per thread basis</em></b>. A child thread automatically inherits a <em>copy</em> of
- * the mapped diagnostic context of its parent.
+ * <b><em>The MDC is managed on a per thread basis</em></b>. To enable automatic inheritance of <i>copies</i> of the MDC
+ * to newly created threads, enable the {@value DefaultThreadContextMap#INHERITABLE_MAP} Log4j system property.
  * </p>
+ * @see <a href="https://logging.apache.org/log4j/2.x/manual/thread-context.html">Thread Context Manual</a>
  */
 public final class ThreadContext {