ember-cli-reporter
v1.0.0
Published
The default blueprint for ember-cli addons.
Downloads
4
Readme
Ember CLI Reporter
This addon is still under development.
This addon aims to simplify remote error reporting in ember apps.
Installation
Ember-cli-reporter works with plugins to report issues to specific error reporting systems. The following addons exist for reporting to with ember-cli-reporter:
- [ember-cli-reporter](Ember-cli-reporter works with plugins to report issues to specific error reporting systems.)
To use ember-cli-reporter install one of these addons to your ember-cli project. E.g.
ember install ember-cli-reporter-bugsnag
You will likely need to provide configuration to the plugin, see the plugin instructions.
For example adding to config/environment.js
:
bugsnag: {
apiKey: 'secretApiKey'
}
Creating a reporter plugin
Ember-cli-reporter works with plugins to report issues to specific error reporting systems. See ember-cli-reporter-bugsnag for an example plugin.
A plugin is expected to
- ensure that
ember-cli-reporter
is installed example, - expose a module which defines the following hooks and variables example
Hooks
name
The name of the addon e.g. 'ember-cli-reporter-bugsnag'.
configNamespace
The location of the config hash in config/environment.js
. Defaults to the name of the addon.
E.g. if configNamespace
is set to bugsnag
, ember-cli-reporter will look for
bugsnag: {
key: value
}
in config/environment.js
.
configure(config)
Called when an app with ember-cli-reporter is initialized. Passes in the config specified by
configNamespace
setting.
error(error)
Called when an error occurs. Passes in the error instance provided by Ember.onerror
.