An introduction to Go's `log/slog` package, added in Go 1.21, covering why it supersedes the original `log` package and third-party alternatives like Logrus, Zap, and ZeroLog. Key features highlighted include built-in log levels, structured key/value output, pluggable and composable handlers (JSON, text, color), and middleware support for filtering or transforming log entries. This is the opening post of a planned series diving into the specifics of `log/slog`.
1 Impression