v0.4.0
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.