This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from donaldwasserman/master
Deprecate Addon
- Loading branch information
Showing
2 changed files
with
6 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ** | ||
|
||
[](https://david-dm.org/davewasmer/ember-cli-rollbar) | ||
[](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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters