You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/09/23 03:05:31 UTC
[3/5] logging-log4j2 git commit: LOG4J2-1447 update documentation
with link to LogEvent::getContextData()
LOG4J2-1447 update documentation with link to LogEvent::getContextData()
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/3d8f3e5e
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/3d8f3e5e
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/3d8f3e5e
Branch: refs/heads/master
Commit: 3d8f3e5edd763c89a41b5b624462738a869dd801
Parents: 9e5c8d4
Author: rpopma <rp...@apache.org>
Authored: Fri Sep 23 11:50:22 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Fri Sep 23 11:50:22 2016 +0900
----------------------------------------------------------------------
src/site/xdoc/manual/extending.xml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/3d8f3e5e/src/site/xdoc/manual/extending.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/extending.xml b/src/site/xdoc/manual/extending.xml
index c33f2d3..3b0070c 100644
--- a/src/site/xdoc/manual/extending.xml
+++ b/src/site/xdoc/manual/extending.xml
@@ -519,8 +519,9 @@ ListAppender list2 = ListAppender.newBuilder().setName("List1").setEntryPerNewLi
<subsection name="Custom ContextDataInjector">
<p>
The <code>ContextDataInjector</code> (introduced in Log4j 2.7) is responsible for
- populating the LogEvent's <code>ContextData</code> with key-value pairs
- or replacing it completely.
+ populating the LogEvent's
+ <a class="javadoc" href="../log4j-core/apidocs/org/apache/logging/log4j/core/LogEvent.html#getContextData()">context data</a>
+ with key-value pairs or replacing it completely.
The default implementation is ThreadContextDataInjector, which obtains context attributes from the ThreadContext.
</p><p>
Applications may replace the default ContextDataInjector by setting the value of the system property