Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2713

KafkaAppender discards all log from kafka-clients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.12.1
    • None
    • Appenders
    • 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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            clement@unportant.info Clément MATHIEU
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: