Releases: gmponos/guzzle-log-middleware
Releases · gmponos/guzzle-log-middleware
Allow psr/log in version 2 and 3
v2.1.0
v2.0.0: Allow guzzle 7 (#30)
Changed
- [BC] Changed the signature of
HandlerInterface::logto allow Throwables. Now the signature is
HandlerInterface::log(
LoggerInterface $logger,
RequestInterface $request,
?ResponseInterface $response = null,
?Throwable $exception = null,
?TransferStats $stats = null,
array $options = []
)- Allow guzzle 7
v1.1.0
v1.0.1
First stable release!!
Changes
- Added more classes of status codes to
ThresholdStrategy
v0.8.0
Changes
- Set as the default strategy in all handlers the
FixedStrategy
BREAKING CHANGES
LogLevelStrategyclass is removed and it has been separated to smaller classes.
Check theaddedsection below.- Changed the namespaces completely. The new Namespace is
GuzzleLogMiddlewareinstead ofGmponos\GuzzleLogger.
Check the README file for instructions. - Changed the signature of function
HandlerInterface::log. - Changed
ArrayHandlertoMultiRecordArrayHandler
Added
FixedStrategya strategy that you are able to set one level for all your logs.ThresholdLevelStrategya strategy that works with thresholds depending on the status code.StatusCodeStrategya strategy that you are able to set a specific log level per status code.
v0.7.0
v0.6.0
v0.5.0
Changed
- BREAKING CHANGE Renamed the variable $logRequestOnExceptionOnly to $onExceptionOnly. The purpose of this constructor argument was to log request and responses only if an exceptgition occurs. If you were manually setting this argument as true now you must set it as false as the variables meaning is inverted.
- Deprecated the option requests. It will be removed on my next version.