Skip to content

Releases: gmponos/guzzle-log-middleware

Allow psr/log in version 2 and 3

04 Apr 08:51
8784459
Compare
Choose a tag to compare
v2.2.0

Update CHANGELOG.md

v2.1.0

18 Mar 14:26
Compare
Choose a tag to compare

Changes

  • Allow PHP 8
  • Fix a deprecation on MultiRecordArrayHandler regarding query

v2.0.0: Allow guzzle 7 (#30)

05 Jul 12:40
7a42976
Compare
Choose a tag to compare

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

03 Sep 09:55
Compare
Choose a tag to compare

Added

  • Added parameters in MultiRecordArrayHandler in order to customize the size truncated #25
  • MultiRecordArrayHandler will parse form requests as and log them as array #27

v1.0.1

18 Jun 17:00
Compare
Choose a tag to compare

Changes

  • Fixes #24. Body MUST rewind on huge responses.

First stable release!!

28 Dec 15:59
Compare
Choose a tag to compare

Changes

  • Added more classes of status codes to ThresholdStrategy

v0.8.0

13 Dec 20:32
Compare
Choose a tag to compare

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 the added section below.
  • Changed the namespaces completely. The new Namespace is GuzzleLogMiddleware instead of Gmponos\GuzzleLogger.
    Check the README file for instructions.
  • Changed the signature of function HandlerInterface::log.
  • Changed ArrayHandler to MultiRecordArrayHandler

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

12 Nov 20:30
b8e211d
Compare
Choose a tag to compare

Changed

  • BREAKING CHANGE Dropped support for PHP 5 and require PHP 7.2 as minimum version.

v0.6.0

20 Oct 11:37
18d19ac
Compare
Choose a tag to compare

Changed

  • BREAKING CHANGE Changed the constructor function of middleware. From now on you can pass a handler to it's constructor. Handlers are responsible for logging request/responses. Removed threshold argument.

v0.5.0

02 Oct 16:05
074be30
Compare
Choose a tag to compare

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.