-
Notifications
You must be signed in to change notification settings - Fork 221
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
switch logger to golang.org/x/exp/slog #96
Comments
Thanks for reporting. Our logger API is based on the |
Could you please provide a bit more detail on why this was closed? Specifically, I think it could help to clarify how Given that |
Currently weaver is using a custom logger; https://github.com/ServiceWeaver/weaver/blob/main/logger.go, https://github.com/ServiceWeaver/weaver/tree/main/runtime/logging
There's a proposal to bring structured logging to the Go standard library. That proposal looks likely to be accepted; It was marked as;
2days ago: golang/go#56345 (comment)
An implementation of that proposal already exists at; https://pkg.go.dev/golang.org/x/exp/slog
Since weaver is just starting, I think it should switch to
golang.org/x/exp/slog
early on. It does not have to do so right away, we can wait a few more days to see if the exp/slog proposal is accepted upstreamThe text was updated successfully, but these errors were encountered: