Plugin that allows you to log errors/exceptions in Craft to Bugsnag.
To install Bugsnag, follow these steps:
- Download & unzip the file and place the
bugsnag
directory into yourcraft/plugins
directory - -OR- do a
git clone https://github.com/sjelfull/Craft-Bugsnag.git
directly into yourcraft/plugins
folder. You can then update it withgit pull
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
bugsnag
for Craft to see it. GitHub recently started appending-master
(the branch name) to the name of the folder for zip file downloads.
Bugsnag works on Craft 2.4.x and Craft 2.5.x.
Bugsnag's cross platform error monitoring automatically detects crashes in your applications, letting you ship with confidence.
- Copy the bugsnag.php configuration file into your
craft/config
folder. - Update
serverApiKey
with a API key from your Bugsnag project. - (Optionally) Set the
environment
configuration setting to something. Defaults toproduction
.
It will automatically log most exceptions/errors. If you want to log a exception/error from an custom plugin, you can use one of the two service methods:
- For exceptions:
craft()->bugsnag->notifyException($exception);
- For errors:
craft()->bugsnag->notifyError($message);
- Initial release
Brought to you by Fred Carlsen
Modified for Wildbit by Matt West