qlimix / http-exception-logger-middleware
Logging exceptions during the http request with PSR-15 middleware
1.0.0
2019-06-23 11:10 UTC
Requires
- php: >=7.2
- psr/http-server-middleware: ^1.0
- qlimix/http: ^1.0
- qlimix/logging-exception-handler: ^1.0
Requires (Dev)
- qlimix/code-standard: ^1.0
This package is auto-updated.
Last update: 2024-10-23 23:43:35 UTC
README
Logging exceptions during the http request with PSR-15 middleware.
Install
Using Composer:
$ composer require qlimix/http-exception-logger-middleware
usage
<?php use Qlimix\HttpMiddleware\ExceptionLoggerMiddleware; $logger = new FooBarExceptionLogger(); $loggerMiddleware = new ExceptionLoggerMiddleware($logger);
Testing
To run all unit tests locally with PHPUnit:
$ vendor/bin/phpunit
Quality
To ensure code quality run grumphp which will run all tools:
$ vendor/bin/grumphp run
Contributing
Please see CONTRIBUTING for details.