dev-master
9999999-devYii1 log target and ErrorHandler for Bugsnag
MIT
The Requires
logging errors
v1.0.0
1.0.0.0Yii1 log target and ErrorHandler for Bugsnag
MIT
The Requires
logging errors
Wallogit.com
2017 © Pedro Peláez
Yii1 log target and ErrorHandler for Bugsnag
To use, configure as such:, (*1)
$config = [
'components' => [
'errorHandler' => [
'class' => 'pinfirestudios\yii1bugsnag\BugsnagErrorHandler'
],
'bugsnag' => [
'class' => 'pinfirestudios\yii1bugsnag\BugsnagComponent', // Or your override of such
'bugsnag_api_key' => 'YOUR API KEY',
'notifyReleaseStages' => ['staging', 'production'],
],
'log' => [
'class' => 'CLogRouter',
'routes' => [
[
'class' => 'pinfirestudios\yii1bugsnag\BugsnagLogTarget',
'levels' => 'error, warning, info, trace',
]
],
],
],
];
If you would like to use Bugsnag's javascript on your site, you'll need to install bower-asset/bugsnag:, (*2)
Add the following to your project's composer.json, (*3)
"repositories": [ { "type": "composer", "url": "https://asset-packagist.org" } ], (*4)
Require bower-asset/bugsnag, (*5)
composer require bower-asset/bugsnag, (*6)
Once you have it installed, add the BugsnagJsWidget to your default layout. This will automatically register Bugsnag's javascript to the page. Default version is 3., (*7)
$this->widget(\pinfirestudios\yii1bugsnag\BugsnagJsWidget::class);, (*8)
If you need to use version 2 of Bugsnag's javascript, you can specify the version in your widget configuration., (*9)
Yii1 log target and ErrorHandler for Bugsnag
MIT
logging errors
Yii1 log target and ErrorHandler for Bugsnag
MIT
logging errors