jamie94bc / serilog-sinks-exceptionless

Writes events from Serilog to the Exceptionless logging service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serilog.Sinks.ExceptionLess

Build status

Serilog sink to publish to ExceptionLess

PM> Install-Package Serilog.Sinks.ExceptionLess

Read the Exceptionless configuration

using Exceptionless;
ExceptionlessClient.Default.Register();
Log.Logger = new LoggerConfiguration()
    .Enrich.With(new HttpRequestIdEnricher())
    .WriteTo.ExceptionLess(b => b.AddTags("Cart").AddObject(order).AddRequestInfo())
    .CreateLogger();

About

Writes events from Serilog to the Exceptionless logging service.

License:Apache License 2.0


Languages

Language:C# 74.6%Language:PowerShell 25.4%