EagleEye150807 / literate-engine8

My first repository, becoming acquainted with Linux systems and open-source code.
MIT License
1 stars 0 forks source link

Setup Airbrake for your .NET application #1

Open EagleEye150807 opened 6 years ago

EagleEye150807 commented 6 years ago

Installation

Installation is available by the package repository NuGet. There are three different packages for different types of .NET apps.

Sharpbrake.Client: C# client with support for .NET 3.5, 4.5 and .NET Core. Available on NuGet

Sharpbrake.Http.Module: HTTP module for ASP.NET request pipeline. Available on NuGet

Sharpbrake.Http.Middleware: Middleware component for new ASP.NET Core pipeline. Available on NuGet

Configuration

Before using the library and its notifiers, you must to configure them. In most cases, it is sufficient to configure only one, default, notifier. (You can find your project API KEY with your project's settings):

var airbrake = new AirbrakeNotifier(new AirbrakeConfig
  {
    ProjectId = "<Your project ID>",
    ProjectKey = "<Your project API KEY>"
  });

There are multiple ways to set your PROJECT_ID and PROJECT_KEY:

For a rundown of advanced configuration options and the notifier API provided for .NET/C# apps, please visit our GitHub.

EagleEye150807 commented 6 years ago

Merging Airbrake with my master which is literate engine8. Any advice from here is appreciated.

Chris