bugsnag

Crates.iobugsnag
lib.rsbugsnag
version0.2.1
sourcesrc
created_at2017-03-10 10:56:59.002167
updated_at2018-01-08 07:38:52.517723
descriptionThe api of Bugsnag in rust.
homepagehttps://github.com/superscale/bugsnag-rs
repositoryhttps://github.com/superscale/bugsnag-rs
max_upload_size
id8918
size41,810
Bastian Köcher (bkchr)

documentation

https://docs.rs/bugsnag/

README

Build Status Coverage Status crates.io MIT licensed docs

bugsnag-rs

The Bugsnag api in rust.

Example

use bugsnag;
let mut api = bugsnag::Bugsnag::new("api-key", env!("CARGO_MANIFEST_DIR"));

// setting the appinfo is not required, but recommended 
api.set_app_info(Some(env!("CARGO_PKG_VERSION")),
                 Some("development"),
                 Some("rust"));

api.notify("Info", "This is a message from the rust bugsnag api.")
       .severity(bugsnag::Severity::Info);

Or in a panic handler you could do the following:


use bugsnag;
let mut api = bugsnag::Bugsnag::new("api-key", env!("CARGO_MANIFEST_DIR"));

bugsnag::panic::handle(&api, panic_info, None);

For more examples on how to integrate bugsnag into a project, the examples folder provides some reference implementations.

Which json fields are missing?

  • metaData
  • user

The structure of the json can be found here.

Commit count: 0

cargo fmt