Skip to content

Serilog Sink that sends log events to LogDNA

Notifications You must be signed in to change notification settings

iojancode/Serilog.Sinks.LogDNA

Repository files navigation

Serilog.Sinks.LogDNA

Serilog Sink that sends log events to LogDNA https://logdna.com

Package - Serilog.Sinks.LogDNA | Platforms - .NET 4.5, netstandard2.0

Example:

var log = new LoggerConfiguration()
    .WriteTo.LogDNA(apiKey: "<API_KEY>", appName: "myapp")
    .CreateLogger();

var position = new { Latitude = 25, Longitude = 134 };
var elapsedMs = 34;
log.Information("Processed {@Position} in {Elapsed:000} ms.", position, elapsedMs);

Prints to LogDNA console:

Oct 10 16:09:13 desktop-r9hnrih myapp Information Processed { Latitude: 25, Longitude: 134 } in 034 ms.

Nuget

About

Serilog Sink that sends log events to LogDNA

Resources

Stars

Watchers

Forks

Languages