Slog: Zero-dependency structured logging in Go

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. example

    Go example projects

    A guide covering how to write custom handlers is out of scope for this post, but you can find one such guide written by the author of slog here. Thankfully, you don’t need to write a handler from scratch to use one. There are several community-contributed handlers, including handlers that allow you to output colored logs, and a handler that lets you implement sampling. You can find a full list here.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. tint

    🌈 slog.Handler that writes tinted (colorized) logs

    A guide covering how to write custom handlers is out of scope for this post, but you can find one such guide written by the author of slog here. Thankfully, you don’t need to write a handler from scratch to use one. There are several community-contributed handlers, including handlers that allow you to output colored logs, and a handler that lets you implement sampling. You can find a full list here.

  4. slog-sampling

    🚨 slog sampling: drop repetitive log records

    A guide covering how to write custom handlers is out of scope for this post, but you can find one such guide written by the author of slog here. Thankfully, you don’t need to write a handler from scratch to use one. There are several community-contributed handlers, including handlers that allow you to output colored logs, and a handler that lets you implement sampling. You can find a full list here.

  5. go

    The Go programming language

    A guide covering how to write custom handlers is out of scope for this post, but you can find one such guide written by the author of slog here. Thankfully, you don’t need to write a handler from scratch to use one. There are several community-contributed handlers, including handlers that allow you to output colored logs, and a handler that lets you implement sampling. You can find a full list here.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Reducing Go Execution Tracer Overhead with Frame Pointer Unwinding

    2 projects | news.ycombinator.com | 31 Jan 2023
  • proposal: log/slog: structured, leveled logging · Issue #56345 · golang/go

    2 projects | /r/golang | 24 Oct 2022
  • Understanding the Go Scheduler

    1 project | news.ycombinator.com | 21 May 2025
  • Pkg.go.dev Is Down

    1 project | news.ycombinator.com | 20 May 2025
  • Too Much Go Misdirection

    2 projects | news.ycombinator.com | 19 May 2025

Did you know that Go is
the 4th most popular programming language
based on number of references?