shizhu, wang created KAFKA-1765: ----------------------------------- Summary: slf4j binding conflict in slf4j-log4j12 and kafka-assembly Key: KAFKA-1765 URL: https://issues.apache.org/jira/browse/KAFKA-1765 Project: Kafka Issue Type: Bug Components: log Affects Versions: 0.8.0 Environment: slf4j-log4j12 kafka-assembly Reporter: shizhu, wang Assignee: Jay Kreps Priority: Critical
Before our project use slf4j which binded to log4j for logging. But after import kafka-assembly.0.8.0.jar, log cannot work as expected. It just keep printing log in console now instead of log files. Looked into kafka-assembly.0.8.0.jar and find there is one SimpleLogger: StringBuffer buf = new StringBuffer(); long millis = System.currentTimeMillis(); buf.append(millis - startTime); buf.append(" ["); buf.append(Thread.currentThread().getName()); buf.append("] "); buf.append(level); buf.append(" "); buf.append(name); buf.append(" - "); buf.append(message); buf.append(LINE_SEPARATOR); System.err.print(buf.toString()); if(t != null) t.printStackTrace(System.err); System.err.flush(); but I don't want this SimpleLogger in kafka-assembly. Can you advise how can I get rid of this reference to this class(cannot remove the jar, because is necessary) -- This message was sent by Atlassian JIRA (v6.3.4#6332)