bitweb/error-reporting
Composer 安装命令:
composer require bitweb/error-reporting
包简介
BitWeb extension for sending errors to email.
README 文档
README
Add this to your index.php file, right after autoloading.
$errorService = new \BitWeb\ErrorReporting\Service\ErrorService(array( 'errorReportingLevel' => E_ALL, 'subject' => '[Errors][your-app-id-here]', 'emails' => array ( 'you@domain.com' ), 'from_address' => 'you@domain.com', 'ignore404' => false, 'ignoreBot404' => false, 'botList' => array( 'AhrefsBot', 'bingbot', 'Ezooms', 'Googlebot', 'Mail.RU_Bot', 'YandexBot', ), 'ignorableExceptions' => array( 'ErrorException' ), 'ignorablePaths' => array ( 'paths/to/ignore' ) )); $errorService->startErrorHandling();
Add this to the last line of your index.php
$errorService->endErrorHandling();
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| errorReportingLevel | integer | E_ALL | The level of error reporting. |
| subject | string | Errors |
The subject of the message being sent. |
| emails | array | array() |
An array of emails the error report is sent to. |
| from_address | string | '' |
Address where the message is sent from. |
| ignore404 | boolean | false |
Are 404 errors ignored? |
| ignoreBot404 | boolean | false |
Are bot 404 errors ignored? |
| botList | array | array() |
Defines bots. |
| ignorableExceptions | array | array('ErrorException') |
Exceptions to ignore. |
| ignorablePaths | array | array() |
Paths to ignore. |
统计信息
- 总下载量: 2.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-04-03