-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: update to go 1.21.0, add log/slog support #72
Conversation
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
+ Coverage 98.79% 98.80% +0.01%
==========================================
Files 12 14 +2
Lines 581 588 +7
==========================================
+ Hits 574 581 +7
Misses 5 5
Partials 2 2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Oops, I found things missing ... it has something like Zap: // Group returns an Attr for a Group Value.
// The first argument is the key; the remaining arguments
// are converted to Attrs as in [Logger.Log].
//
// Use Group to collect several key-value pairs under a single
// key on a log line, or as the result of LogValue
// in order to log a single value as multiple Attrs.
func Group(key string, args ...any) Attr {
return Attr{key, GroupValue(argsToAttrSlice(args)...)}
} |
OK. fixed |
Hi, a year has passed; when will support for slog be available? |
since go 1.20 has been eof (https://endoflife.date/go) Is it still necessary for us to continue supporting Go 1.20? |
@ttys3 promising, thanks for not giving up 😂 |
go 1.21.0 stdlib slog provides structured logging, in which log records include a message, a severity level, and various other attributes expressed as key-value pairs.
see https://pkg.go.dev/log/slog