Skip to content

slog-argument-shape

Default severity: warning

Reports odd key/value tails, non-string loose keys, and calls that mix slog.Attr values with loose key/value pairs.

slog.Info("request", 42, method, "status")
slog.Info("request", "method", method, "status", status)