A Serilog sink that writes log events to Bugsnag.
Getting started
To use the sink, first install the NuGet package:
Install-Package Serilog.Sinks.Bugsnag
Then enable the sink using WriteTo.Bugsnag(new Configuration { ApiKey="_YOU_API_KEY_"})
:
Log.Logger = new LoggerConfiguration()
.WriteTo.Bugsnag(new BugsnagConfiguration { ApiKey="_YOU_API_KEY_"})
.CreateLogger();
Log.Error(new Exception("Error"));
Copyright © 2017 Serilog Contributors - Provided under the Apache License, Version 2.0.