keisenb.serilog.kafka.sink 0.0.8

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 and Polyglot Notebooks. 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 Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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 855 2/14/2019
0.0.4 1,354 12/27/2017

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