naldorp / Serilog.Sinks.Bugsnag

Serilog.Sinks.Bugsnag is a library to save logging information from Serilog to Bugsnag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serilog.Sinks.Bugsnag NuGet Version Documentation Join the chat at https://gitter.im/serilog/serilog Help

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.

About

Serilog.Sinks.Bugsnag is a library to save logging information from Serilog to Bugsnag

License:MIT License


Languages

Language:C# 100.0%