Serilog sink to publish to Exceptionless
PM> Install-Package Serilog.Sinks.Exceptionless
Read the Exceptionless configuration
using Exceptionless;
Exceptionless.ExceptionlessClient.Default.Startup();
Log.Logger = new LoggerConfiguration()
.WriteTo.Exceptionless(b => b.AddTags("ASP.NET Core Example Logger").AddRequestInfo(HttpContext))
.CreateLogger();
var log = Log.ForContext<HomeController>();
log.Information("Info Log that also contains HttpContext request info and default tags");
Copyright © 2017 Serilog Contributors - Provided under the Apache License, Version 2.0.