在akka中将apache kafka的log4j桥接到slf4j

在akka中将apache kafka的log4j桥接到slf4j,log4j,akka,slf4j,apache-kafka,Log4j,Akka,Slf4j,Apache Kafka,不确定为什么我无法在akka应用程序中将apache kafka 0.8.1.1中的log4j消息桥接到slf4j log4j:WARN No appenders could be found for logger (kafka.utils.VerifiableProperties). log4j:WARN Please initialize the log4j system properly. sbt相关性: "com.typesafe.akka" %% "akka-slf4j" % a

不确定为什么我无法在akka应用程序中将apache kafka 0.8.1.1中的log4j消息桥接到slf4j

log4j:WARN No appenders could be found for logger (kafka.utils.VerifiableProperties).
log4j:WARN Please initialize the log4j system properly.
sbt相关性:

  "com.typesafe.akka" %% "akka-slf4j" % akkaVersion withSources() withJavadoc(),
  "org.apache.kafka" %% "kafka" % "0.8.1.1" exclude("javax.jms", "jms") exclude("com.sun.jdmk", "jmxtools") exclude("com.sun.jmx", "jmxri") withSources() withJavadoc(),
  "org.slf4j" % "log4j-over-slf4j" % "1.7.5",
  "ch.qos.logback" % "logback-classic" % "1.0.13",
我在logback中定义了根日志记录器,akka应用程序的日志记录良好,但我无法通过apache kafka的日志?无双面装订等

我忽略了什么吗


Thx从kafka dependencies中排除log4j解决了我类似的问题

libraryDependencies += "org.apache.kafka" % "kafka_2.11" % "0.8.2.0" exclude("log4j", "log4j") exclude("org.slf4j","slf4j-log4j12")
sbt依赖关系

"org.apache.kafka" % "kafka_2.11" % "0.8.2.0" exclude("log4j", "log4j") exclude("org.slf4j","slf4j-log4j12"),
"org.slf4j" % "log4j-over-slf4j" % "1.7.5"