Socket
Book a DemoInstallSign in
Socket

ember-rollbar

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-rollbar

The default blueprint for ember-cli addons.

0.0.12
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

ember-addon

FAQs

Package last updated on 12 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.