faultline-js
faultline exception and error notifier for JavaScript.
Installation
Using npm:
npm install faultline-js
or
Usage
var faultline = project: 'faultline-js' apiKey: 'xxxxXXXXXxXxXXxxXXXXXXXxxxxXXXXXX' endpoint: 'https://xxxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/v0' notifications: type: 'slack' endpoint: 'https://hooks.slack.com/services/XXXXXXXXXX/B2RAD9423/WC2uTs3MyGldZvieAtAA7gQq' channel: '#random' username: 'faultline-notify' notifyInterval: 1 threshold: 1 timezone: 'Asia/Tokyo' ;
Or if you are using browserify/webpack/etc:
var faultlineJs = ;var faultline = project: 'faultline-js' apiKey: 'xxxxXXXXXxXxXXxxXXXXXXXxxxxXXXXXX' endpoint: 'https://xxxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/v0' notifications: type: 'slack' endpoint: 'https://hooks.slack.com/services/XXXXXXXXXX/B2RAD9423/WC2uTs3MyGldZvieAtAA7gQq' channel: '#random' username: 'faultline-notify' notifyInterval: 1 threshold: 1 timezone: 'Asia/Tokyo' ;
Integration
window.onerror
faultline-js automatically setups window.onerror
handler when script is loaded, like airbrake-js
References
- faultline-js is based on airbrake/airbrake-js
- Airbrake Js is licensed under The MIT License (MIT).
License
MIT © Ken'ichiro Oyama