seeren / error
Handle and log errors
4.0
2022-01-06 21:56 UTC
Requires
- php: >=8.0.1
- seeren/log: ^3.0
Requires (Dev)
- php-coveralls/php-coveralls: ^v2.5.2
- phpunit/phpunit: ^9.5
README
Handle and Log errors
Installation
composer require seeren/error
Seeren\Error\ErrorLogger
Error logger is registred at construction
use Seeren\Error\ErrorLogger; $errorHandler = new ErrorLogger();
Default logger is Seeren\Log\Logger\Daily, log folder is in /var/log
project/ └─ var/ └─ log/
Prs-3 implementations can be used to log errors
new \Seeren\Error\ErrorLogger($psr3Logger);
Default PHP error handler will not display messages and every debug
, info
, notice
, warning
, errors
will be logged
License
This project is licensed under the MIT License