slog-gorm

A slog adapter, highly configurable, for gorm logger

MIT License

Stars
35

Bot releases are hidden (Show)

slog-gorm - v1.4.0 Latest Release

Published by orandin 2 months ago

What's Changed

⚠️ Deprecation notice (since v1.3.0)

  • slogGorm.WithLogger(...) is deprecated, use slogGorm.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: https://github.com/orandin/slog-gorm/compare/v1.3.2...v1.4.0

slog-gorm - v1.3.2

Published by orandin 6 months ago

What's Changed

⚠️ Deprecation notice (since v1.3.0)

  • slogGorm.WithLogger(...) is deprecated, use slogGorm.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: https://github.com/orandin/slog-gorm/compare/v1.3.1...v1.3.2

slog-gorm - v1.3.1

Published by orandin 7 months ago

What's Changed

⚠️ Deprecation notice (since v1.3.0)

  • slogGorm.WithLogger(...) is deprecated, use slogGorm.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: https://github.com/orandin/slog-gorm/compare/v1.3.0...v1.3.1

slog-gorm - v1.3.0

Published by orandin 7 months ago

What's Changed

⚠️ Deprecation notice

  • slogGorm.WithLogger(...) is deprecated, use slogGorm.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: https://github.com/orandin/slog-gorm/compare/v1.2.0...v1.3.0

slog-gorm - v1.2.0

Published by orandin 8 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/orandin/slog-gorm/compare/v1.1.0...v1.2.0

slog-gorm - v1.1.0

Published by orandin 10 months ago

Features

  • Add the ability to log context values with each Gorm log (by @golgeek)
slog-gorm - v1.0.1

Published by orandin 12 months ago

Dependencies

slog-gorm -

Published by orandin about 1 year ago