GithubHelp home page GithubHelp logo

pavlalexandr / bugsnag-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bugsnag/bugsnag-dotnet

0.0 1.0 0.0 3.03 MB

.NET notifier for Bugsnag. Error monitoring and error reporting for .NET.

Home Page: https://docs.bugsnag.com/platforms/dotnet/

License: MIT License

C# 96.61% PowerShell 2.79% Ruby 0.46% Gherkin 0.14%

bugsnag-dotnet's Introduction

Bugsnag Notifier for .NET

build status Documentation

The Bugsnag Notifier for .NET gives you instant notification of exceptions thrown from your .NET apps. Any uncaught exceptions will trigger a notification to be sent to your Bugsnag project.

Bugsnag captures errors in real-time from your web, mobile and desktop applications, helping you to understand and resolve them as fast as possible. Create a free account to start capturing exceptions from your applications.

Contents

Getting Started

Installation

Using Nuget (Recommended)

  • Install the Bugsnag package from Nuget.

Manual library reference

  • Download the latest Bugsnag.dll and reference it in your project

Sending a Test Notification

var configuration = new Bugsnag.Configuration("{API_KEY}");
var client = new Bugsnag.Client(configuration);

client.Notify(new System.Exception("Error!"));

Usage

Catching and Reporting Exceptions

var configuration = new Bugsnag.Configuration("{API_KEY}");
var client = new Bugsnag.Client(configuration);

throw new System.Exception("Error!");

Sending Handled Exceptions

var configuration = new Bugsnag.Configuration("{API_KEY}");
var client = new Bugsnag.Client(configuration);

try
{
	throw new System.Exception("Error!");
}
catch (System.Exception ex)
{
	client.Notify(ex);
}

Callbacks

var configuration = new Bugsnag.Configuration("{API_KEY}");
var client = new Bugsnag.Client(configuration);
client.BeforeNotify((report) => {
	report.Event.User = new Bugsnag.Payload.User {
    Id = "1",
    Name = "Testy McTest",
    Email = "[email protected]" };
});

Disabling Bugsnag in Debug Mode

var configuration = new Bugsnag.Configuration("{API_KEY}")
{
	ReleaseStage = "development",
	NotifyReleaseStages = new[] { "production" },
};
var client = new Bugsnag.Client(configuration);

try
{
	throw new System.Exception("Error!");
}
catch (System.Exception ex)
{
	client.Notify(ex);
}

Demo Applications

Demo applications which use the Bugsnag .NET library

Support

Contributing

We'd love you to file issues and send pull requests. The contributing guidelines details the process of building and testing bugsnag-dotnet, as well as the pull request process. Feel free to comment on existing issues for clarification or starting points.

License

The Bugsnag .NET notifier is free software released under the MIT License. See LICENSE.txt for details.

bugsnag-dotnet's People

Contributors

bugsnagbot avatar cawllec avatar jviolas avatar kattrali avatar martin308 avatar shamsulamry avatar steve-nester-uk avatar tomlongridge avatar tremlab avatar twometresteve avatar xpaw avatar yousif-bugsnag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.