Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

serilog-archive/serilog-sinks-datadog

Repository files navigation

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