/serilog-sinks-sentryio

A Serilog sink that writes events to Sentry.io service

Primary LanguageC#

Serilog.Sinks.SentryIO Build status NuGet Version

Writes Serilog events to a Sentry.io service.

var log = new LoggerConfiguration()
    .WriteTo.SentryIO("{dsn-from-sentry-io-website}")
    .CreateLogger();

<appSettings> configuration

The sink can be configured in XML app-settings format if the Serilog.Settings.AppSettings package is in use:

<add key="serilog:using:SentryIO" value="Serilog.Sinks.SentryIO" />
<add key="serilog:write-to:SentryIO.dsn" value="{dsn-from-sentry-io-website}" />
<add key="serilog:write-to:SentryIO.release" value="1.7.3" /> (optional)