Structured Logging for the Standard Library

March 25, 2024 21 min Free

Description

Go 1.21 introduces `slog`, a new structured logging package in the standard library. This talk, presented by Jonathan Amsterdam, covers the motivation behind adding structured logging to the Go standard library, delves into the design and API of the `slog` package, and explains the performance optimizations implemented to ensure high efficiency. It also touches upon the development process from conception to release and the future outlook for structured logging in Go.