ember-cli-reporter

1.0.0 • Public • Published

Ember CLI Reporter

Embadge

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:

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i ember-cli-reporter

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bdvholmes
  • mmun