e96/yii2-sentry
最新稳定版本:0.2.0
Composer 安装命令:
composer require e96/yii2-sentry
包简介
A Yii2 client for Sentry (http://getsentry.com)
README 文档
README
##Install
php composer.phar require e96/yii2-sentry
Usage
In config file:
'bootstrap' => ['log', 'raven'], 'components' => [ 'raven' => [ 'class' => 'e96\sentry\ErrorHandler', 'dsn' => '', // Sentry DSN ], 'log' => [ 'targets' => [ [ 'class' => 'e96\sentry\Target', 'levels' => ['error', 'warning'], 'dsn' => '', // Sentry DSN ] ], ], ]
You can provide additional information with exceptions:
SentryHelper::extraData($task->attributes); throw new Exception('unknown task type');
Or just capture message with full stacktrace
try { throw new Exception('FAIL'); } catch (Exception $e) { SentryHelper::captureWithMessage('Fail to save model', $e); }
统计信息
- 总下载量: 59.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-24