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

introduce logging/slog #276

Merged
merged 4 commits into from
Dec 9, 2023
Merged

introduce logging/slog #276

merged 4 commits into from
Dec 9, 2023

Conversation

shogo82148
Copy link
Owner

From Go 1.21, new logging package log/slog is available.

pc = pcs[0]
r := slog.NewRecord(time.Now(), level, msg, pc)
r.Add(data...)
a.handler.Handle(ctx, r)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
Error return value of a.handler.Handle is not checked (errcheck)

@shogo82148 shogo82148 merged commit 1d9e1da into main Dec 9, 2023
21 checks passed
@shogo82148 shogo82148 deleted the introduce-goaslog branch December 9, 2023 16:02
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

Successfully merging this pull request may close these issues.

None yet

1 participant