Skip to content

Resources for slog

Samuel Berthe edited this page Apr 30, 2023 · 37 revisions

This page links to projects that use or enhance slog, the proposed structured logging package for the standard library, accepted for Go 1.21.

A preliminary implementation is at golang.org/x/exp/slog. That won't be receiving any more updates; instead, follow the src/log/slog directory of the main Go repo.

Since slog has been in flux for several months, some of these resources may be out of date and may not build. The API did not change that much, though, so fixes should be straightforward.

Log formatting:

Logger bridge:

HTTP server middleware:

Log sink:

Other:

Clone this wiki locally