ember-bugsnag
Adds the Bugsnag.js library to your
Ember app, and configures it to handle errors from Ember and the browser.
Installation
Requires Ember 2.3+
ember install ember-bugsnag
Configuration
ember-bugsnag
will look for configuration options in your app's environment
under the bugsnag
key. This means you can access any of the public API
configuration options accepted by Bugsnag.js.
Example:
ENV['bugsnag'] = {
apiKey: 'SUPER_SECRET',
};
ember-bugsnag
will automatically set Bugsnag.releaseStage
to match the
environment in which your app is running.
For all the available configuration options, see
Bugsnag.js Readme.
Usage
Bugsnag is available within your controllers and routes, allowing you to
customise the behaviour of Bugsnag and send custom notifications.
It also allows you to use Bugsnag's user
and metaData
attributes.
Example:
sessionAuthenticationSucceeded: function(){
this._super();
var user = this.get('currentUser');
this.get('bugsnag').user = user.getProperties('id', 'email');
}
...
Running in development
Running Tests
ember test
ember test --server
Building
For more information on using ember-cli, visit http://www.ember-cli.com/.