Skip to content
random thoughts
  • Posts
  • Tags
  • About

Tags

Logging

2 posts

  • Sep 14, 2023

    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.

  • Aug 20, 2023

    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.

© 2026 Riad Afridi Shibly

RSS Built with Hugo