kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Quinteiro (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-323) Add the ability to use the async producer in the Log4j appender
Date Thu, 29 Mar 2012 20:45:25 GMT

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

Jose Quinteiro updated KAFKA-323:
---------------------------------

    Attachment: appender.patch
    
> 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
>              Labels: appender, log4j
>         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

        

Mime
View raw message