PHP code example of gold / craft-bugsnag
1. Go to this page and download the library: Download gold/craft-bugsnag library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gold / craft-bugsnag example snippets
# craft/config/bugsnag.php
return array(
'api_key' => 'YOUR-API-KEY-HERE'
);
return array(
'api_key' => 'YOUR-API-KEY-HERE',
'notify_release_stages' => ['production', 'staging']
);
craft()->bugsnag->instance()->notifyError("ErrorType", "Something bad happened here too");