Skip to content

Glossary: Go Beyond the Basics

log level

Also written: levels, Debug, Info, Warn, Error

How serious a log line is: Debug (details for finding bugs), Info (normal events), Warn (something odd) or Error (a failure). A minimum level hides less important lines.

Where the book teaches it

Related terms

slog.HandlerOptionsstructured logging