Send Craft exceptions to Bugsnag with this tiny extension to Craft's error handler.
composer require workingconcept/bugsnag-craft3 @dev
.- In the control panel, visit Settings → Plugins, and install Bugsnag.
- Add the Bugsnag API key for your project in the plugin's settings.
By default, the plugin will report when CRAFT_ENVIRONMENT
is set to staging
and production
. You can override this by supplying your own config/bugsnag.php:
return [
'notifyRelease' => ['local', 'staging', 'production']
];
Only if you live dangerously. I'm getting my feet wet with Craft 3 and this is my first plugin. This thing will probably need revision before it's safe for your Mars mission. I'll gladly accept issues, pull requests, and emails if you've found room for improvement!