Categories

Logging

Libraries for generating and working with log files.

Repos

131

Stars

118,620

30 days

+234

uber-go

Blazing fast, structured, leveled logging in Go.

Created Feb 2016

golang logging structured-logging zap
Total 24,722
30 days +58
rs

Zero Allocation JSON Logger

Created May 2017

golang json logging structured-logging zerolog
Total 12,546
30 days +25
phuslu

Fastest structured logging

Created Jul 2019

golang json log logger logging
Total 881
30 days +4
samber

🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

Created Apr 2023

attribute error errors go golang
Total 646
30 days +8
samber

🚨 slog: Attribute formatting

Created Apr 2023

anonymization error formatter formatting go
Total 228
30 days +2
samber

🚨 slog: Loki handler

Created Apr 2023

attribute error errors go golang
Total 82
30 days +0
samber

🚨 slog: Zerolog handler

Created Sep 2023

adapter attribute error go golang
Total 77
30 days +0
samber

🚨 slog: Zap handler

Created Sep 2023

adapter attribute error go golang
Total 54
30 days +0
samber

🚨 slog: Sentry handler

Created Apr 2023

attribute error errors go golang
Total 54
30 days +0

More

coder

Minimal structured logging library for Go

Created Sep 2019

go slog structured-logging
Total 351
30 days +0
veqryn

Use golang structured logging (slog) with context. Add and retrieve logger to and from context. Add attributes to context. Automatically read any custom context values, such as OpenTelemetry TraceID.

Created Nov 2023

context golang golang-library logging opentelemetry
Total 196
30 days +0
samber

🚨 Gin middleware for slog logger

Created Apr 2023

error formatter gin gin-gonic go
Total 192
30 days +2
samber

🚨 slog sampling: drop repetitive log records

Created May 2023

go golang handler log-level logger
Total 120
30 days +1
samber

🚨 Chi middleware for slog logger

Created Oct 2023

attribute chi error errors go
Total 100
30 days +1
willibrandon

Serilog-inspired structured logging for Go with message templates, rich formatting, and native Seq support

Created Jul 2025

elasticsearch go logging message-templates seq
Total 98
30 days +0
samber

🚨 Fiber middleware for slog logger

Created Apr 2023

attribute errors fiber go gofiber
Total 98
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.