Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #119 from donaldwasserman/master
Browse files Browse the repository at this point in the history
Deprecate Addon
  • Loading branch information
davewasmer authored Aug 15, 2019
2 parents fbdd787 + ceeb6c3 commit 201023c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 44 deletions.
47 changes: 3 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
# ember-cli-rollbar
# ember-cli-rollbar ** This Addon Is Unmaintained Has Been Deprecated **

[![Dependency Status](https://david-dm.org/davewasmer/ember-cli-rollbar.svg)](https://david-dm.org/davewasmer/ember-cli-rollbar)
[![Build Status](https://travis-ci.org/davewasmer/ember-cli-rollbar.svg?branch=master)](https://travis-ci.org/davewasmer/ember-cli-rollbar)
Please use the very fine [ember-rollbar-client](https://github.com/Exelord/ember-rollbar-client) instead.

Drop-in Rollbar error reporting integration.

## Installation

Just add your Rollbar client-side access token to your `config/environment.js`:

```js
var ENV = {
//...
rollbar: {
accessToken: '<your token here>'
}
};
```

The `rollbar` config object is used to configure Rollbar, and defaults to the following options:

```js
{
enabled: environment !== 'development',
captureUncaught: true,
payload: {
environment: environment
}
}
```

## Usage

By default, any calls to `Ember.Logger.error()` will be logged to Rollbar.

You can also import the Rollbar javascript API as an ES2015 module

```js
import rollbar from 'rollbar';

rollbar.critical('Someone tripped over the power cord!');

```

For details on using the Rollbar javascript API, please check out [their documentation](https://rollbar.com/docs/notifier/rollbar.js/).
Thanks for all the help and support!
3 changes: 3 additions & 0 deletions app/initializers/rollbar.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/* global Rollbar */
import Ember from 'ember';
import { deprecate } from '@ember/application/deprecations';


export default {
name: 'rollbar',
initialize: function() {
deprecate('This addon has been deprecated. Please use https://github.com/Exelord/ember-rollbar-client')
var errorLogger = Ember.Logger.error;
Ember.Logger.error = function() {
var args = Array.prototype.slice.call(arguments),
Expand Down

0 comments on commit 201023c

Please sign in to comment.