LOG4J2-1447 added method LogEvent::getContextData and deprecated 
LogEvent::getContextMap


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

Branch: 
refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure
Commit: d3bc0cf892ddbfe8d56ffd576834e6d511fb924f
Parents: f0aa703
Author: rpopma <[email protected]>
Authored: Wed Jul 27 01:14:19 2016 +0900
Committer: rpopma <[email protected]>
Committed: Wed Jul 27 01:14:19 2016 +0900

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/core/LogEvent.java    | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d3bc0cf8/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEvent.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEvent.java 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEvent.java
index 5b68155..d42aed7 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEvent.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEvent.java
@@ -45,10 +45,18 @@ public interface LogEvent extends Serializable {
      * Gets the context map (also know as Mapped Diagnostic Context or MDC).
      *
      * @return The context map, never {@code null}.
+     * @deprecated use {@link #getContextData()} instead
      */
     Map<String, String> getContextMap();
 
     /**
+     * Returns the {@code ContextData} object holding context key-value pairs.
+     * @return the {@code ContextData} object holding context key-value pairs
+     * @since 2.7
+     */
+    ContextData getContextData();
+
+    /**
      * Gets the context stack (also known as Nested Diagnostic Context or NDC).
      *
      * @return The context stack, never {@code null}.

Reply via email to