Excepticon SDK for .NET
Package | Target | Downloads | Nuget Pre-release | Nuget Stable |
---|---|---|---|---|
Excepticon | .NET Standard 2.0 | |||
Excepticon.AspNetCore | .NET Standard 2.0 |
Excepticon is an exception monitoring service for .NET applications and services. This repository contains the client-side libraries for integrating your .NET applications and services with Excepticon.
Here you'll find a basic introduction to the Excepticon SDK and its API, but for more detailed information, please take a look at the Excepticon documentation.
You can also check out the examples here to see how Excepticon can be integrated into different project types.
-
Create Excepticon Account - You'll need create an Excepticon account before you can use the Excepticon SDK. All of our plans include a free 15-day trial (no credit card required), and we offer a Developer plan that is free for solo developers working on non-commercial projects.
-
Create Project - After creating an account, create a project in the Excepticon web app.
-
API Key - An API key will be generated when your project is created and can be retrieved from the Project Settings page in Excepticon. This key uniquely identifies your project and will be used when configuring the SDK.
For many project types, adding Excepticon error monitoring can be accomplished in just a couple of simple steps.
Install the latest version of the Excepticon package via the Nuget Package Manager, the Package Manager Console, or the dotnet CLI:
#Package Manager Console:
Install-Package Excepticon
#dotnet CLI:
dotnet add package Excepticon
Initialize the ExcepticonSdk
with you project's API Key:
static void Main(string[] args)
{
using (ExcepticonSdk.Init("{Your ApiKey Here}"))
{
// Application logic
// Test that exceptions are being sent to Excepticon
throw new ApplicationException("My test exception.");
}
}
Unhandled exceptions within the using block will automatically be sent to Excepticon.
Install the latest version of the Excepticon.AspNetCore package via the Nuget Package Manager, the Package Manager Console, or the dotnet CLI:
#Package Manager Console:
Install-Package Excepticon.AspNetCore
#dotnet CLI:
dotnet add package Excepticon.AspNetCore
In Program.cs, add a call to .UseExcepticon()
when building your IWebHostBuilder
:
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseExcepticon("{Your ApiKey Here}");
Unhandled exceptions will automatically be sent to Excepticon.
Refer to the documentation for recommendations for storing your API Key in your application's configuration.
You might require a different configuration depending on your project type.
Please see the Getting Started documentation for guides on configuring Excepticon for many different .NET project types.
- E-mail: [email protected]
- Twitter: @excepticonapp