0.0.12 • Published 8 years ago

ember-rollbar v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Ember Addon for Rollbar.

Build Status

By default, Ember.onerror and rejected promises log to Rollbar.

Installing

ember install ember-rollbar

Usage

Set config rollbar in appllication. It uses for configuring Rollbar.

ENV: {
  APP: {
    rollbar: {
      enabled: true,
      captureUncaught: true,
      payload: {
        environment
      }
    }
  }
}

You can inject rollbar and get access to configure method and rollbar instance.

// component.js

import Ember from 'ember';
const {
  Component,
  inject: { service }
} = Ember;

export default Component.extend({
  rollbarService: service('rollbar'),
  didInserElement() {
    this._super();
    get(this, 'rollbarService.rollbar').error('Error text.');
    get(this, 'rollbarService').configure({ enabled: false });
  }
});

More Info

Please check out Rollbar JavaScript docs

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago