Skip to content

Releases: cappuccinotm/slogx

Version 1.5.0

15 Feb 22:26
7acd40b

Choose a tag to compare

What's Changed

  • feat: add wrapper for Middleware by @ArtARTs36 in #11
  • upgrade to go 1.26, upgrade golangci-lint to v2 by @Semior001 in #13
  • chore: move ApplyHandler to slogm and check handler is enabled by @ArtARTs36 in #12
  • fix: panic in logging round tripper if request body is passed as nil, instead of NoBody by @Semior001 in #14

New Contributors

Full Changelog: v1.4.2...v1.5.0

v1.4.0

23 Mar 11:45

Choose a tag to compare

  • feat: added options to set custom headers, query, IP address sanitizers

Full Changelog: v1.3.0...v1.4.0

Version 1.3.0

18 Feb 12:10
118bace

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.3.0

BREAKING CHANGES

  • Chain now calls the WithGroup directly, so the chain will not be capturing group in any way anymore. This has been made due to erroneous consideration of the developer of how the handler should handle the groups and attributes, attached to the logger. For handling the logger-level groups and attributes, please, consider using the slogx.Accumulator.
  • slogx.ErrorKey and slogx.RequestIDKey are now variables, not constants. This has been made to allow consumers to set the keys how they want instead of hardcoding them.
  • slogx.Error now logs errors as Any's instead of strings. This is required to allow other middlewares to deal with error as an object, rather than a string.