[ 
https://issues.apache.org/jira/browse/KAFKA-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jay Kreps updated KAFKA-323:
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.8
         Assignee: Jay Kreps
           Status: Resolved  (was: Patch Available)
    
> 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
>            Assignee: Jay Kreps
>              Labels: appender, log4j
>             Fix For: 0.8
>
>         Attachments: appender.patch
>
>
> 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

        

Reply via email to