https://github.com/cludden/sails-hook-bugsnag
https://github.com/cludden/sails-hook-bugsnag
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cludden/sails-hook-bugsnag
- Owner: cludden
- License: mit
- Created: 2015-09-24T22:44:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-26T15:26:01.000Z (almost 11 years ago)
- Last Synced: 2025-08-22T20:30:30.983Z (11 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sails-hook-bugsnag
a `bugsnag` hook for `sails.js` apps (`v0.11`)
## Install
`npm install --save sails-hook-bugsnag`
```javascript
// config/bugsnag.js
module.exports.bugsnag = {
apiKey: process.env['BUGSNAG_APIKEY'], // required
enabled: true // default
options: {
// pass configuration options to bugsnag
// see https://github.com/bugsnag/bugsnag-node for more examples
}
};
```
## Purpose
Capture uncaught errors and stack traces and log them to bugsnag. Provide access to the [bugsnag-node](https://github.com/bugsnag/bugsnag-node) at `sails.bugsnag`.
## Testing
`npm test`
## To Do
- [ ] write more tests
## Contributing
1. [Fork it](https://github.com/cludden/sails-hook-bugsnag/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## Licesnse
Copyright (c) 2015 Chris Ludden
Licensed under the [MIT license](LICENSE.md)