Git Product home page Git Product logo

bugsnag-erlang's Introduction

Bugsnag notifier for Erlang applications.

Dependencies

Requires Lager.

The following applications must be started:

lager, inets, crypto, ssl

Usage

You may send custom errors directly:

bugsnag:notify(error, fake, "Testing bugsnag with a manual error report", no_module, 0).

Or use the Erlang error logger:

error_logger:error_msg("A sample error caught by the bugsnag error logger.").

Or cause an error with a full stack trace:

bugsnag:test_error().

When embedding, make sure to set up the configuration elements in your sys.config (or other config file):

[
  {bugsnag, [
    {error_logger, true},
    {api_key, "ENTER_API_KEY"},
    {release_state, "development"}
  ]}
].

And start the application:

application:start(bugsnag)

Or add the application to your .app configuration.

Lager handler

We also provide a lager to report anything above a certain level (by default, error) to Bugsnag.

For example, simply add

{bugsnag_lager_handler, critical}

to your lager handler config.

Thanks

Thank you to Ken Pratt: his library https://github.com/kenpratt/erlbrake provided a lot of code for this library.

bugsnag-erlang's People

Contributors

licenser avatar aeden avatar jkingsbery avatar wk8 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.