nkovacs/yii2-errbit
最新稳定版本:0.1.3
Composer 安装命令:
composer require nkovacs/yii2-errbit
包简介
Logs errors to [errbit](https://github.com/errbit/errbit)
关键字:
README 文档
README
Logs errors to errbit
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist nkovacs/yii2-errbit "*"
or add
"nkovacs/yii2-errbit": "*"
to the require section of your composer.json file.
Usage
Replace the default error handler with either \nkovacs\errbit\WebErrorHandler or \nkovacs\errbit\ConsoleErrorHandler:
... 'components' => [ 'errorHandler' => [ 'class' => 'nkovacs\errbit\ConsoleErrorHandler', 'errbit' => [ 'api_key' => 'your api key', 'host' => 'errbit.example.org', ], ], ], ...
or
... 'components' => [ 'errorHandler' => [ 'class' => 'nkovacs\errbit\ConsoleErrorHandler', 'errbit' => [ 'api_key' => 'your api key', 'host' => 'errbit.example.org', ], ], ], ...
You can pass additional options to errbitPHP:
... 'components' => [ 'errorHandler' => [ 'class' => 'nkovacs\errbit\ConsoleErrorHandler', `errbit` => [ 'api_key' => 'your api key', 'host' => 'errbit.example.org', 'environment_name' => 'development', ], ], ], ...
To enable the js notifier:
... 'components' => [ 'errorHandler' => [ 'class' => 'nkovacs\errbit\WebErrorHandler', `errbit` => [ 'api_key' => 'your api key', 'host' => 'errbit.example.org', ], 'jsNotifier' => true, ], ], ...
You can pass additional options to the js plugin using the jsOptions property.
If the controller implements UserInfoInterface, the information returned by getErrbitUserInfo will also be
sent to errbit.
统计信息
- 总下载量: 23.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-12-02