Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16924

No log output when running kafka

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      In https://github.com/apache/kafka/pull/12148 , we removed log4jAppender dependency, and add testImplementation dependency for `slf4jlog4j` lib. However, we need this runtime dependency in tools module to output logs. ([ref](https://stackoverflow.com/a/21787813)) Adding this dependency back.

       

      Note: The slf4jlog4j lib was added in log4j-appender dependency. Since it's removed, we need to explicitly declare it.

       

      Current output will be like this:

      > ./gradlew clean jar
      > bin/kafka-server-start.sh config/kraft/controller.properties
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

       

      Attachments

        Issue Links

          Activity

            People

              showuon Luke Chen
              showuon Luke Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: