Skip to content

serilog-contrib/serilog-sinks-apachekafka

Repository files navigation

Kafka sink for Serilog

A sink for Serilog that writes events to Kafka with failover functionality.

Installation

Install-Package Serilog.Sinks.ApacheKafka

Usage

var loggerConfig = new LoggerConfiguration()
    .WriteTo.Kafka(
        new JsonFormatter(),
        new KafkaOptions(new List<string> { "kafka:9092" }, "topic"));

Roadmap

Contributing