Add the ability to use the async producer in the Log4j appender
---------------------------------------------------------------
Key: KAFKA-323
URL: https://issues.apache.org/jira/browse/KAFKA-323
Project: Kafka
Issue Type: Improvement
Components: core
Reporter: Jose Quinteiro
I needed the log4j appender to use the async producer, so I added a couple of
configuration methods to the log4j appender. I only added methods for the
configuration fields that I needed. There are several in in the various
ProducerConfigs that still cannot be set in the appender.
Sample use:
KafkaLog4jAppender kafkaAppender = new
KafkaLog4jAppender();
kafkaAppender.setZkConnect( "localhost:2181/kafka" );
kafkaAppender.setTopic( "webapp" );
kafkaAppender.setProducerType( "async" );
kafkaAppender.setEnqueueTimeout( Integer.toString(
Integer.MIN_VALUE ) );
kafkaAppender.activateOptions();
--
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