nofw / error
Common interface for error handlers
Requires
- php: ^7.1
Requires (Dev)
- gamez/psr-testlogger: ^1.0.3
- phpunit/phpunit: ^6.1
This package is auto-updated.
Last update: 2024-10-19 11:14:41 UTC
README
Common interface for error handlers.
Why?
With the introduction of PSR-3 everyone's life became a whole lot easier: libraries could finally implement proper logging without relying on arbitrary implementations.
Logging however in case of applications is not always that simple. Error monitoring became quite common these days, and the current PSR-3 logger interface cannot always cover the needs of an error handler.
For example: an error monitor expects backtrace to be sent. With PSR-3 it's only possible, if you send it as part of the log message or send it in a context.
Futhermore, with PHP 7 we can finally catch errors as well, not just exceptions.
Install
Via Composer
$ composer require nofw/error
Testing
$ make test
Security
If you discover any security related issues, please contact us at mark.sagikazar@gmail.com.
License
The MIT License (MIT). Please see License File for more information.