serilog-archive / serilog-sinks-datadog

A Serilog sink that writes events to DataDog
Apache License 2.0
8 stars 8 forks source link

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();