caseyamcl/guzzle_request_logger

Guzzle v6+ Request Logging Middleware

v0.2 2018-01-25 17:51 UTC

This package is auto-updated.

Last update: 2024-10-12 06:50:19 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

A simple request logging middleware for Guzzle v6+

Structure

src/   - Source Files
tests/ - Unit Tests

Install

Via Composer

$ composer require caseyamcl/guzzle_request_logger

Usage

// $logger is any PSR-6-compatible logging class (e.g. Monolog, Symfony Logger, etc)

$stack \GuzzleHttp\HandlerStack::create();
$stack->push(new RequestLogger($logger));

$client = new \GuzzleHttp\Client(['handler' => $stack]);

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email caseyamcl@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.