qlimix/http-exception-logger-middleware

Logging exceptions during the http request with PSR-15 middleware

1.0.0 2019-06-23 11:10 UTC

This package is auto-updated.

Last update: 2024-10-23 23:43:35 UTC


README

Travis CI Coveralls Packagist MIT License

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.