Skip to content

KunalSaini/NLog.Kafka

Repository files navigation

Kafka target for NLog

Build status

A NLog target that post to Kafka queue

Dependencies

Uses kafka-net as underlying connector to Kafka

Usage

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>

About

A NLog target that post to Kafka queue

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages