You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2021/12/26 02:49:18 UTC

[GitHub] [logging-log4j2] dongjinleekr commented on a change in pull request #640: LOG4J2-3256: Reduce ignored package scope of KafkaAppender

dongjinleekr commented on a change in pull request #640:
URL: https://github.com/apache/logging-log4j2/pull/640#discussion_r775189022



##########
File path: log4j-kafka/src/main/java/org/apache/logging/log4j/kafka/appender/KafkaAppender.java
##########
@@ -136,6 +136,18 @@ public B setRetryCount(final String retryCount) {
         return new Builder<B>().asBuilder();
     }
 
+    private static final String[] KAFKA_CLIENT_PACKAGES = new String[] { "org.apache.kafka.common", "org.apache.kafka.clients" };

Review comment:
       It seems like we are checking the package prefix, not the exact match. Is there any way to do prefix match with binary search? (Or, using regex would be better?)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org