[ https://issues.apache.org/jira/browse/KAFKA-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183550#comment-13183550 ]
Stefano Santoro commented on KAFKA-244: --------------------------------------- with this patch the kafka lof4j appender supports formatters. I tested it well against logger properties specifying broker.list, but it hangs when I specify zk.connect instead. The new log4j properties are serializerClass (instead of encoder for serilizer.class), zkConnect (for zk.connect), and brokerList (for broker.list) > Improve log4j appender to use kafka.producer.Producer, and support > zk.connect|broker.list options > --------------------------------------------------------------------------------------------------- > > Key: KAFKA-244 > URL: https://issues.apache.org/jira/browse/KAFKA-244 > Project: Kafka > Issue Type: Improvement > Components: clients > Affects Versions: 0.7.1 > Reporter: Stefano Santoro > Labels: log4j, newbie > Fix For: 0.7.1 > > > Taken from #kafka IRC session with Neha Narkhede: > The log4j appender is quite obsolete, there are a few things to change there. > Make it use the kafka.producer.Producer instead of SyncProducer. That allows > you to use either the broker.list or the zk.connect option -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira