keisenb.serilog.kafka.sink 0.0.8

.NET Framework 4.6.1
dotnet add package keisenb.serilog.kafka.sink --version 0.0.8
NuGet\Install-Package keisenb.serilog.kafka.sink -Version 0.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="keisenb.serilog.kafka.sink" Version="0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add keisenb.serilog.kafka.sink --version 0.0.8
#r "nuget: keisenb.serilog.kafka.sink, 0.0.8"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install keisenb.serilog.kafka.sink as a Cake Addin
#addin nuget:?package=keisenb.serilog.kafka.sink&version=0.0.8

// Install keisenb.serilog.kafka.sink as a Cake Tool
#tool nuget:?package=keisenb.serilog.kafka.sink&version=0.0.8

serilog-kafka-sink

A Serilog sink for sending structured logging events to Apache Kafka

Add this to your global.asax.cs file

string brokers = "kafka-server:9092,kafka-server2:9092"; //comma seperated list of kafka brokers
string topic = "kafka-topic-name"; //name of kafka topic to produce logs to
string application = "bills-app-service"; //name of service that is producing log messages

Log.Logger = new LoggerConfiguration()
    .WriteTo
    .Kafka(batchSizeLimit: 50, period: 1, brokers: brokers, topic: topic, application: application)
    .CreateLogger();
Product Versions
.NET Framework net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.8 714 2/14/2019
0.0.4 1,174 12/27/2017

Code cleanup, removed schema, added application variable, updated documentation.