[ https://issues.apache.org/jira/browse/KAFKA-2077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoy Antony updated KAFKA-2077: -------------------------------- Attachment: kafka-2077-001.patch Attached patch adds a new new Parameter _topicClass_ . This will accept an implementation of _TopicPicker_ interface. The _TopicPicker.getTopic_ will return a topic based on the current message. > Add ability to specify a TopicPicker class for KafkaLog4jApender > ---------------------------------------------------------------- > > Key: KAFKA-2077 > URL: https://issues.apache.org/jira/browse/KAFKA-2077 > Project: Kafka > Issue Type: Improvement > Components: producer > Reporter: Benoy Antony > Assignee: Jun Rao > Attachments: kafka-2077-001.patch > > > KafkaLog4jAppender is the Log4j Appender to publish messages to Kafka. > Currently , a topic name has to be passed as a parameter. In some use cases, > it may be required to use a different topics for the same appender instance. > So it may be beneficial to enable KafkaLog4jAppender to accept TopicClass > which will provide a topic for a given message. -- This message was sent by Atlassian JIRA (v6.3.4#6332)