I have created a custom log4j2 Kafka appender as I need to send the message in protocol buffers format. When I run the application, I see the following warning. How to make the custom appender override the default appender?
Plugin [kafka] is already mapped to class org.apache.logging.log4j.core.appender.mom.kafka.KafkaAppender, ignoring class com.abc.appender.KafkaAppender
NOTE: I have read the documentation in https://logging.apache.org/log4j/2.x/manual/plugins.html and it is not clear how to set the plugin override order.