Releases: orandin/slog-gorm
Releases · orandin/slog-gorm
v1.4.0
What's Changed
- feat: allow adding attribute via a context function by @teleivo in #25
- Allow contextKey accepts any type by @chucamphong in #28
⚠️ Deprecation notice (since v1.3.0)
slogGorm.WithLogger(...)
is deprecated, useslogGorm.WithHandler(...)
instead:
gormLogger := slogGorm.New(
// slogGorm.WithLogger(logger), // Deprecated since v1.3.0, use `slogGorm.WithHandler(...)` instead.
slogGorm.WithHandler(logger.Handler()), // since v1.3.0
)
New Contributors
Full Changelog: v1.3.2...v1.4.0
v1.3.2
What's Changed
- chore: fix deprecated comment on WithLogger by @shota3506 in #22
⚠️ Deprecation notice (since v1.3.0)
slogGorm.WithLogger(...)
is deprecated, useslogGorm.WithHandler(...)
instead:
gormLogger := slogGorm.New(
// slogGorm.WithLogger(logger), // Deprecated since v1.3.0, use `slogGorm.WithHandler(...)` instead.
slogGorm.WithHandler(logger.Handler()), // since v1.3.0
)
New Contributors
- @shota3506 made their first contribution in #22
Full Changelog: v1.3.1...v1.3.2
v1.3.1
What's Changed
- chore(deps): bump gorm.io/gorm from 1.25.7 to 1.25.9 by @dependabot in #20
- fix: record attribute correctly by @zzzgydi in #21 (inspired by @violin0622 in #19)
⚠️ Deprecation notice (since v1.3.0)
slogGorm.WithLogger(...)
is deprecated, useslogGorm.WithHandler(...)
instead:
gormLogger := slogGorm.New(
// slogGorm.WithLogger(logger), // Deprecated since v1.3.0, use `slogGorm.WithHandler(...)` instead.
slogGorm.WithHandler(logger.Handler()), // since v1.3.0
)
New Contributors
- @zzzgydi made their first contribution in #21
- @violin0622 made their first contribution in #19
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's Changed
- chore(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in #16
- feat: retain debug tracing behavior of default logger by @tauu in #6
- feat: use slog handler by @injeniero in #17
⚠️ Deprecation notice
slogGorm.WithLogger(...)
is deprecated, useslogGorm.WithHandler(...)
instead:
gormLogger := slogGorm.New(
// slogGorm.WithLogger(logger), // Deprecated since v1.3.0, use `slogGorm.WithHandler(...)` instead.
slogGorm.WithHandler(logger.Handler()), // since v1.3.0
)
New Contributors
- @tauu made their first contribution in #6
- @injeniero made their first contribution in #17
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- chore(deps): bump gorm.io/gorm from 1.25.5 to 1.25.6 by @dependabot in #9
- chore(deps): bump gorm.io/gorm from 1.25.6 to 1.25.7 by @dependabot in #11
- Update go directive to 1.21 instead of 1.21.0 by @pjarmalavicius in #14
New Contributors
- @pjarmalavicius made their first contribution in #14
Full Changelog: v1.1.0...v1.2.0
v1.1.0
v1.0.1
Dependencies
- Bumps gorm.io/gorm from 1.25.4 to 1.25.5.