org_heigl/error_focus
Composer 安装命令:
composer require org_heigl/error_focus
包简介
Remove messages from the error log that are from a certain folder
README 文档
README
A package to stay focused on relevant entries in your error-log
Scope
This package allows you to declare folders that are not under your development and that you have therefore no way of fixing errors in. Errors or Warnings or notices that are raised within those declared folders will not be logged to your error-log any more tso that you can concentrate on the tasks that you can actually fix and don't have your error log fill up with stuff that others broke.
Installation
The base installation is done via composer
$ composer require org_heigl/error_focus
After that you will have to set up the package in your bootstrap file.
\Org_Heigl\ErrorFocus\ErrorFocus::init([ __DIR__ . '/../vendor', ]);
That's it. Now every message from a file within your vendor-folder will not hit your error-log any more.
You can add more than one folder to this configuration.
CAVEAT: This will set an error-handler. If you need to set another error handler afterwards you will overwrite this one!
In that case you might want to use this slightly different setup:
\Org_Heigl\ErrorFocus\ErrorFocus::init([ __DIR__ . '/../vendor', ], [ [$myErrorHandlerInstance, 'myErrorHandlerMethod'], $myInvocableInstance, [MyStaticErrorHandler::class, 'myStaticErrorHandlerMethod'], ])
Feedback
Please leave feedback on the issue-tracker at https://github.com/heiglandreas/error_focus
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-13