Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slogr: add glue code for logging to slog.Handler and with slog.Logger #205

Merged
merged 2 commits into from
Aug 22, 2023

Commits on Aug 18, 2023

  1. add Logger.GetV

    The call is needed for interoperability with other logging packages when
    replacing the logr.Logger high-level API with some other API, like slog.Logger.
    pohly committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    69a3af1 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. slogr: add glue code for logging to slog.Handler and with slog.Logger

    Interoperability with log/slog from Go 1.21 includes the ability to use a
    slog.Handler as backend with logr.Logger as frontend and vice versa.
    
    This is only the initial step. In particular writing with slog.Logger to
    a logr.LogSink is not working well (time stamp and call site from
    record get ignored). Further work is needed to improve this.
    pohly committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    b50ee60 View commit details
    Browse the repository at this point in the history