@formidablejs/bugsnag-plugin
v0.0.5
Published
Bugsnag notifier for the Formidable framework.
Downloads
175
Readme
Bugsnag Plugin
Bugsnag notifier for the Formidable framework (work in progress).
Requirements
- @formidablejs/craftsman:
>=0.5.0-alpha.3
- @formidablejs/framework:
>=0.5.0-alpha.1
- @bugsnag/js
>=7.11.0
Publish
craftsman publish --package=@formidablejs/bugsnag-plugin --tag=config
Config
Add BugsnagServiceResolver
in the config/app.imba
config under resolvers
:
...
resolvers: {
...
require('@formidablejs/bugsnag-plugin').BugsnagServiceResolver
Note, the
BugsnagServiceResolver
must be at the top of theresolvers
list.
Then, register the bugsnag.imba
config file in the config/index.imba
file:
...
import bugsnag from './bugsnag'
export class Config < ConfigRepository
# All of the configuration items.
#
# @type {Object}
get registered
{
...
bugsnag
}
And finally set your api key in the .env
file:
BUGSNAG_API_KEY=<your-api-key>
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.