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::log
to 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
LogLevelStrategy
class is removed and it has been separated to smaller classes.
Check theadded
section below.- Changed the namespaces completely. The new Namespace is
GuzzleLogMiddleware
instead ofGmponos\GuzzleLogger
.
Check the README file for instructions. - Changed the signature of function
HandlerInterface::log
. - Changed
ArrayHandler
toMultiRecordArrayHandler
Added
FixedStrategy
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.
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.