Logging
2 posts
Structured Logging in Go with log/slog
Getting started with log/slog, Go 1.21's standard-library structured logger — levels, handlers, wrapping the logger, writing to a file, and go vet gotchas.
Trace Logging in Golang
Add a TRACE log level to a Go program to observe code execution paths, using runtime caller info to report the file and line that logged.