You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2019/12/04 03:26:26 UTC
[logging-log4j2] branch release-2.x updated: LOG4J2-2727 - Add
setKey method
This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new b290674 LOG4J2-2727 - Add setKey method
b290674 is described below
commit b290674e5f44679704f59bcb8163d3468a1c3226
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Tue Dec 3 20:26:13 2019 -0700
LOG4J2-2727 - Add setKey method
---
.../apache/logging/log4j/core/appender/mom/kafka/KafkaAppender.java | 5 +++++
src/changes/changes.xml | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaAppender.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaAppender.java
index 73d95a8..92e86a7 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaAppender.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaAppender.java
@@ -91,6 +91,11 @@ public final class KafkaAppender extends AbstractAppender {
return asBuilder();
}
+ public B setKey(final String key) {
+ this.key = key;
+ return asBuilder();
+ }
+
}
@Deprecated
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index eb41c2b..47b7d13 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -30,7 +30,10 @@
- "remove" - Removed
-->
<release version="2.13.0" date="2019-MM-DD" description="GA Release 2.13.0">
- <action issue="LOG4J@-2707" dev="rgoers" type="fix" due-to="Christian Frank">
+ <action issue="LOG4J2-2727" dev="rogers" type="fix" due-to="Clément Mathieu">
+ Add setKey method to Kafka Appender Builder.
+ </action>
+ <action issue="LOG4J2-2707" dev="rgoers" type="fix" due-to="Christian Frank">
ArrayIndexOutOfBoundsException could occur with MAC address longer than 6 bytes.
</action>
<action issue="LOG4J2-63" dev="rgoers" type="add">