/serilog-sinks-datadog

A Serilog sink that writes events to DataDog

Primary LanguageC#Apache License 2.0Apache-2.0

Serilog.Sinks.Datadog

Build status

Sends log events using Datadog.

Package - Serilog.Sinks.Datadog | Platforms - .NET 4.5.1, netstandard1.3, netstandard2.0

var config = new DatadogConfiguration()
    .WithStatsdServer("127.0.0.1", 8125)
    .WithHostname("my-server")
    .WithTags("tag1", "tag2");

var log = new LoggerConfiguration()
    .WriteTo.Datadog(config)
    .CreateLogger();