Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.12.1
-
None
-
None
Description
We have many applications which use both log4j's KafkaAppender and `kafka-clients` for their business logic. To prevent recursion, KafkaAppender implementation filters any LogEvent coming from the `org.apache.kafka` package. While healthy for log4j, it is annoying for regular Kafka usages. Would it be possible to improve this filtering? In synchronous case, shouldn't AppenderControl#callAppenderPreventRecursion prevent recursion? If smarter filtering is not possible, shouldn't log4j use a relocated kafka-clients impl to prevent such issue?