Raygun is a service for automatically reporting, tracking and alerting you to errors in your applications. Discover and resolve errors faster than ever before and keep your users happy.
This library is based off of Nancy.Raygun which was created for classic .NET Nancy apps. It was based on the original library https://github.com/MindscapeHQ/raygun4net from Mindscape. The purpose of this library is to provide the same functionality for dotnet core Nancy apps.
Using Nuget, install the Nancy.Raygun.AspNetCore package. Your .csproj should include the following:
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
<PackageReference Include="Nancy.Raygun.AspNetCore" Version="1.0.2" />
</ItemGroup>
Add the following code to your appsettings.json:
"RaygunSettings": {
"ApiKey": "YOUR_APP_API_KEY"
}
And that's it. Nancy should automatically pull in and setup raygun via NancyRaygunRegistration
which is an IApplicationStartup
.
Nancy.Raygun.AspNetCore is released under the MIT license.