surda/logging

Plug-in support logging for Tracy / Nette Framework

v2.0.0 2023-04-03 14:07 UTC

This package is auto-updated.

Last update: 2024-04-04 08:19:35 UTC


README

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,
    ...
]);