Common interface for error handlers.
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.
Via Composer
$ composer require nofw/error
$ make test
If you discover any security related issues, please contact us at [email protected].
The MIT License (MIT). Please see License File for more information.