Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 823 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 823 Bytes

Logging


Licence Latest stable PHPStan

Installation

The recommended way to is via Composer:

composer require surda/logging

Guzzle Logger

$stack = \GuzzleHttp\HandlerStack::create();
$stack->push(
    \GuzzleHttp\Middleware::log(
        new \Surda\Logging\TracyGuzzleLogger(),
        new \GuzzleHttp\MessageFormatter('{request} - {response}')
    )
);

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