qlimix / logging-exception-handler
记录异常
2.0.0
2020-04-19 12:26 UTC
Requires
- php: >=7.4
- qlimix/logging: ^2.0
Requires (Dev)
- qlimix/code-standard: ^2.0
This package is auto-updated.
Last update: 2024-09-07 03:23:48 UTC
README
记录异常。
安装
使用 Composer
$ composer require qlimix/logging-exception-handler
用法
<?php use Qlimix\Log\Logger\Exception\ExceptionLogger; use Exception; $logHandler = new FileLogHandler(); $logger = new ExceptionLogger($logHandler); $logger->emergency('foo', new Exception()); $logger->critical('foo', new Exception()); $logger->alert('foo', new Exception()); $logger->error('foo', new Exception()); $logger->debug('foo', new Exception());
测试
要本地运行所有单元测试(使用 PHPUnit)
$ vendor/bin/phpunit
质量
为了确保代码质量,运行 grumphp,它将运行所有工具
$ vendor/bin/grumphp run
贡献
请参阅 CONTRIBUTING 以获取详细信息。