metalguardian/yii-ratchet-error-handler
Composer 安装命令:
composer require metalguardian/yii-ratchet-error-handler
包简介
README 文档
README
Error handler with handling php errors, exceptions,. fatal errors
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require metalguardian/yii-ratchet-error-handler "dev-master"
or add
"metalguardian/yii-ratchet-error-handler": "dev-master"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your configuration file :
array( 'preload' => array( // ... 'rollbar', // ... ), 'components' => array( 'rollbar' => array( 'class' => '\metalguardian\rollbar\Component', 'access_token' => 'ACCESS_TOKEN', 'environment' => 'production', 'included_errno' => E_ALL, ), 'errorHandler' => array( 'class' => '\metalguardian\rollbar\ErrorHandler', 'ignoreException' => function ($exception) { /** @var \CHttpException $exception */ // ignore 404 exceptions if ($exception instanceof \CHttpException && $exception->statusCode == 404) { return true; } // ignore 403 exceptions if ($exception instanceof \CHttpException && $exception->statusCode == 403) { return true; } // other ignores return false; }, ), ), // ... )
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-21