---
title: "Why slog Over zerolog"
date: 2026-03-10
tags: ["go"]
description: "Why slog is my default over zerolog for new Go projects after log/slog landed in the standard library."
---

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.
