Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 452 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 452 Bytes

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