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

Reduce ignored package scope of KafkaAppender

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17.1
    • None
    • None

    Description

      As of present, KafkaAppender ignores logging messages from the loggers starting with "org.apache.kafka". This is because KafkaAppender uses KafkaPoducer internally and to avoid recursive logging.

      However, the current ignored package scope, "org.apache.kafka", is too large, since KafkaProducer uses "org.apache.kafka.common" and "org.apache.kafka.client" only. It is problematic when Apache Kafka uses log4j2 for its logging.

      As of present, Apache Kafka is still using log4j 1.x, but a migration project is under-progress:

      If this project is taken, Apache Kafka will deprecate its log4j-appender and migrate into log4j2's KafkaAppender. Reducing the ignored package scope is a prior task to this work.

      Attachments

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              dongjin Dongjin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: