Skip to content

v0.4.0

Compare
Choose a tag to compare
@veqryn veqryn released this 27 Dec 22:11
· 35 commits to main since this release

Added compatibility with Logr:
slog-context is now compatible with both standard library slog and with logr, which is an alternative logging api/interface/frontend.

If only slog is used, only *slog.Logger's will be stored in the context.
If both slog and logr are used, *slog.Logger will be automatically converted to a logr.Logger as needed, and vice versa. This allows full interoperability up and down the stack and with any libraries that use either slog-context or logr.