getolympus/olympus-hades-error-handler
Composer 安装命令:
composer require getolympus/olympus-hades-error-handler
包简介
Olympus Hades is a bundle used to handle all Olympus errors from your WordPress website and its plugins.
README 文档
README
Olympus Hades Error Handler is a bundle used to handle all Olympus errors from your WordPress website and its plugins.
composer require getolympus/olympus-hades-error-handler
Features
- Better and secure folder structure
- Dependency management with Composer
- Seldaek Monolog component
- Symfony Error handler component
Initialization
To initialize Hades, you'll need to extend the main class before all:
namespace MyCustomPackage; use GetOlympus\Hades\Hades; class ErrorDebugger extends Hades { }
Once done, simple initiate your custom class and register handlers:
/** * Use the ErrorDebugger to display errors */ $err = ErrorDebugger::register([ 'debug' => WP_DEBUG, 'level' => WP_DEBUG ? 500 : 100, 'logs' => 'my/custom/logs/folder/', 'title' => 'My custom handler title', ]);
Release History
See CHANGELOG.md for all details.
Contributing
- Fork it (https://github.com/GetOlympus/Hades-Error-Handler/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
Built with ♥ by Achraf Chouk ~ (c) since a long time.
统计信息
- 总下载量: 98
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-10