Automated ranking

Best Go Logging Libraries

Compare go logging libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include slog-multi, Zerolog, Zap.

Best overall

slog-multi

Highest combined package health score.

95
Best maintained

slog-multi

Strongest maintenance signal in this category.

95
Most adopted

slog-multi

Highest adoption signal from stars, forks, and imported-by data.

100

Ranked Packages

17 packages

#1 slog-multi

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

Go Logging Libraries 626 stars 237 imported-by 100% confidence
95

#2 Zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging.

Go Logging Libraries 12.4K stars 30.5K imported-by 100% confidence
94

#3 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 119.7K imported-by 65% confidence
92

#4 logger

Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured.

Go Logging Libraries 55 stars 615 imported-by 95% confidence
86

#5 Logrus

Package logrus is a structured logger for Go, completely API compatible with the standard library logger.

Go Logging Libraries 25.7K stars 0 imported-by 65% confidence
86

#6 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 0 imported-by 45% confidence
78

#7 log

Package log provides a structured logger.

Go Logging Libraries 193 stars 4.5K imported-by 95% confidence
76

#8 log

Structured logging package for Go.

Go Logging Libraries 1.4K stars 4.7K imported-by 65% confidence
73

#9 go-stem

Implementation of the porter stemming algorithm.

Go Logging Libraries 81 stars 40 imported-by 100% confidence
63

#10 graphlib

Topological sort lib,Sorting and pruning of DAG graphs.

Go Logging Libraries 4 stars 1 imported-by 100% confidence
63

#11 porter

Package porter implements the Porter stemming algorithm.

Go Logging Libraries 0 stars 2 imported-by 80% confidence
61

#12 oops

🔥 Error handling library with context, assertion, stack trace and source fragments

Go Logging Libraries 0 stars 0 imported-by 55% confidence
58

#13 eris

Package eris provides a better way to handle, trace, and log errors in Go.

Go Logging Libraries 0 stars 1.2K imported-by 80% confidence
54

#14 redact

Redact sensitive information from slog-based logs using a configurable pipeline.

Go Logging Libraries 0 stars 0 imported-by 80% confidence
51

#15 log

An O(1) logging system that allows you to connect one log to multiple writers (e.g. stdout, a file and a TCP connection).

Go Logging Libraries 0 stars 4 imported-by 80% confidence
44

#16 gone/jconf

Fast, extendable, full-featured, std-lib source compatible log library.

Go Logging Libraries 0 stars 0 imported-by 25% confidence
44

#17 stdlog

Package log provides a common interface for logging libraries.

Go Logging Libraries 0 stars 0 imported-by 60% confidence
35

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
slog-multi 95 95 100 92 237
Zerolog 94 90 100 92 30.5K
Zap 92 88 100 92 119.7K
logger 86 90 91 92 615
Logrus 86 88 100 70 0
phuslu/log 78 90 71 70 0
log 76 38 100 92 4.5K
log 73 27 100 92 4.7K
go-stem 63 15 77 92 40
graphlib 63 63 24 92 1
porter 61 75 15 92 2
oops 58 90 5 70 0
eris 54 15 60 92 1.2K
redact 51 45 7 92 0
log 44 15 19 92 4
gone/jconf 44 48 7 70 0
stdlog 35 15 7 70 0

Related Comparisons

Go Logging Libraries

Zerolog vs slog-multi

Compare health, maintenance, adoption, security, and release signals.

95

Zerolog vs logger

Compare health, maintenance, adoption, security, and release signals.

94

slog-multi vs logger

Compare health, maintenance, adoption, security, and release signals.

95

logger vs log

Compare health, maintenance, adoption, security, and release signals.

86