NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
A Guzzle middleware to log request and responses automatically
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.7 years
Nearly every release is documented
notes for 13 of 14 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
14 releases · first in 2016
Nothing published for this version
Fix a deprecation on MultiRecordArrayHandler regarding query
One column per quarter.
[BC] Changed the signature of HandlerInterface::log to allow Throwables. Now the signature is
HandlerInterface::log to allow Throwables. Now the signature isHandlerInterface::log(
LoggerInterface $logger,
RequestInterface $request,
?ResponseInterface $response = null,
?Throwable $exception = null,
?TransferStats $stats = null,
array $options = []
)Added parameters in MultiRecordArrayHandler in order to customize the size truncated #25
Fixes #24 . Body MUST rewind on huge responses.
Added more classes of status codes to ThresholdStrategy
ThresholdStrategySet as the default strategy in all handlers the FixedStrategy
FixedStrategyBREAKING CHANGES
LogLevelStrategy class is removed and it has been separated to smaller classes.added section below.GuzzleLogMiddleware instead of Gmponos\GuzzleLogger.HandlerInterface::log.ArrayHandler to MultiRecordArrayHandlerFixedStrategy a strategy that you are able to set one level for all your logs.ThresholdLevelStrategy a strategy that works with thresholds depending on the status code.StatusCodeStrategy a strategy that you are able to set a specific log level per status code.BREAKING CHANGE Dropped support for PHP 5 and require PHP 7.2 as minimum version.
BREAKING CHANGE Changed the constructor function of middleware. From now on you can pass a handler to it's constructor. Handlers are responsible for l…
BREAKING CHANGE Renamed the variable $logRequestOnExceptionOnly to $onExceptionOnly. The purpose of this constructor argument was to log request and r…
Removed LoggerAwareTrait. Therefore the logger can not be set after the construction of the middleware.
LoggerAwareTrait. Therefore the logger can not be set after the construction of the middleware.$logRequests of the constructor to $logRequestOnExceptionOnly.\Exception or a MessageInterface an Exception is thrown.__construct and __invoke to private. Same for the properties.The package was reading the headers of the Request/Response and if they contained application/json the body was parsed into an array in order to be be
application/json the body
was parsed into an array in order to be better readable in the logger. This has changed to match a regular expression
/application\/[\w\.\+]*(json)/ in order to catch more cases. Thanks @eduarguzher #4ext-json needs to be installed in order for the package to work. Therefore
it was added as a requirement to composer.jsonA new option is added with key sensitive. When you make a request using guzzle you can set this option to true in order not to log the body of the req
sensitive. When you make a request using guzzle you can set this option to true
in order not to log the body of the request and response. Example:$guzzle->get('/test', ['log' => ['sensitive' => true]]);
^6.3 to 6.*. Package should be able to work with any version 6.* of guzzle.summary was added in the logs and also a key with body. The body contained only
the wording "Body was truncated because of it's size". This is changed now and the summary key is removed and the body
key will contain the summary from now on.body.Created the first functionality of the middleware
Your coding agent can read these notes before it upgrades. Set up the MCP server →