surda/logging

Plug-in support logging for Tracy / Nette Framework

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/surda/logging

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

This package is auto-updated.

Last update: 2025-10-04 11:28:03 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,
    ...
]);