A NLog target that post to Kafka queue
Uses kafka-net as underlying connector to Kafka
Add NLog.Kafka to your solution and update your nlog.config:
Add the following target
to the targets
section
<target xsi:type="Kafka"
name="KafkaTarget"
topic="storm_troper"
layout="Custom text ${longdate} level=${level}">
<broker address="http://kafkaBroker1:9092"/>
<broker address="http://kafkaBroker2:9092"/>
<broker address="http://kafkaBroker3:9092"/>
<broker address="http://kafkaBroker4:9092"/>
</target>