pinfirestudios/yii1-bugsnag
Composer 安装命令:
composer require pinfirestudios/yii1-bugsnag
包简介
Yii1 log target and ErrorHandler for Bugsnag
README 文档
README
To use, configure as such:
$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:
-
Add the following to your project's composer.json
"repositories": [ { "type": "composer", "url": "https://asset-packagist.org" } ]
-
Require bower-asset/bugsnag
composer require bower-asset/bugsnag
-
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.
$this->widget(\pinfirestudios\yii1bugsnag\BugsnagJsWidget::class);
If you need to use version 2 of Bugsnag's javascript, you can specify the version in your widget configuration.
统计信息
- 总下载量: 1.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-07