Installation #
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 Overview #
Bugsnag's cross platform error monitoring automatically detects crashes in your applications, letting you ship with confidence.
Configuring Bugsnag #
- 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
.
Using Bugsnag #
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);
Releases
- Added: Initial release
Currently available for Craft consulting and custom plugin development
Contact me