You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO(bwplotka): Once slog is official, we could use slog method directly. Currently level is copied over, so we don't
// depend on experimental module.
We always intended to use the slog logging level when it became available. Would you be able to contribute a fix to switch us to using the slog log level? It's a somewhat breaking change but I think it's understandable.
The current implementation is not compatible with the std library
log/slog
packagehttps://github.com/grpc-ecosystem/go-grpc-middleware/blob/main/interceptors/logging/logging.go#L188-L196
The compiler error is
Go version used: any version from 1.21
What happened:
It's not possible to inject the
slog.Default()
logger to the interceptorWhat you expected to happen:
I'd like to be able to use the std slog logger
Any plan to be compatible with slog/log ?
The text was updated successfully, but these errors were encountered: