surda / logging
Plug-in support logging for Tracy / Nette Framework
v2.0.0
2023-04-03 14:07 UTC
Requires
- php: ^8.0
- psr/log: ^3.0
- tracy/tracy: ^2.0|^3.0
Requires (Dev)
- nette/tester: ^2.0
- ninjify/nunjuck: 0.3
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
This package is auto-updated.
Last update: 2024-11-04 09:29:50 UTC
README
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, ... ]);