— notes

Why slog Over zerolog

1 min read#go

Go 1.21 introduced log/slog in the standard library. For new projects, I now default to slog over zerolog.

The API is cleaner, it is part of the standard library (no dependency), and the handler interface makes it trivial to swap backends. The performance gap that once justified zerolog has narrowed significantly.