- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LogAttrs (0.08 sec)
-
src/log/slog/internal/benchmarks/benchmarks_test.go
"5 args", func() { logger.LogAttrs(nil, slog.LevelInfo, testMessage, slog.String("string", testString), slog.Int("status", testInt), slog.Duration("duration", testDuration), slog.Time("time", testTime), slog.Any("error", testError), ) }, }, { "5 args ctx", func() { logger.LogAttrs(ctx, slog.LevelInfo, testMessage,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 18:32:54 UTC 2023 - 4.5K bytes - Viewed (0) -
src/log/slog/json_handler_test.go
String("package", "log/slog"), String("traceID", "2039232309232309"), String("URL", "https://pkg.go.dev/golang.org/x/log/slog")) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { l.LogAttrs(ctx, LevelInfo, "this is a typical log message", String("module", "github.com/google/go-cmp"), String("version", "v1.23.4"), Int("count", 23), Int("number", 123456), ) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 17:06:26 UTC 2023 - 6.5K bytes - Viewed (0)