Skip to content

Glossary: Go Beyond the Basics

handler (slog)

Also written: slog handler

The part of a slog logger that decides how events are written, as `key=value` text or as JSON. It is unrelated to an HTTP handler.

Where the book teaches it

Related terms

slog.New / NewTextHandler / NewJSONHandlerslog.Logger