Releases: cappuccinotm/slogx
Releases · cappuccinotm/slogx
Version 1.5.0
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
- @ArtARTs36 made their first contribution in #11
Full Changelog: v1.4.2...v1.5.0
v1.4.0
- feat: added options to set custom headers, query, IP address sanitizers
Full Changelog: v1.3.0...v1.4.0
Version 1.3.0
What's Changed
- feat: added accumulator by @Semior001 in #8
- feat: added "Capture" middleware by @Semior001 in #9
- fblog-like handler by @Semior001 in #7
Full Changelog: v1.2.0...v1.3.0
BREAKING CHANGES
- Chain now calls the
WithGroupdirectly, 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 theslogx.Accumulator. slogx.ErrorKeyandslogx.RequestIDKeyare now variables, not constants. This has been made to allow consumers to set the keys how they want instead of hardcoding them.slogx.Errornow logs errors asAny's instead of strings. This is required to allow other middlewares to deal with error as an object, rather than a string.