|
|
|
|
|
by bpicolo
1036 days ago
|
|
As mentioned in the article, Zap's SugaredLogger has roughly the same thing https://pkg.go.dev/go.uber.org/zap sugar.Infow("failed to fetch URL",
"url", "http://example.com",
"attempt", 3,
"backoff", time.Second,
)
Really slog presents mostly the same two APIs as Zap, with a single entrypoint. |
|