8000 logger.go: consider slog.Logger.LogAttrs · Issue #25 · USACE/cc-go-sdk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

logger.go: consider slog.Logger.LogAttrs #25

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

Open
jba opened this issue Mar 17, 2025 · 0 comments
Open

logger.go: consider slog.Logger.LogAttrs #25

jba opened this issue Mar 17, 2025 · 0 comments

Comments

@jba
Copy link
jba commented Mar 17, 2025

At

func toAny(attr []slog.Attr) []any {
, you convert slog.Attrs to any to call CcLogger.Log. You could avoid the conversions by using slog.LogAttrs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0