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 Zap, phuslu/log, Zerolog.

Best overall

Zap

Highest combined package health score.

97
Best maintained

Zap

Strongest maintenance signal in this category.

95
Most adopted

Zap

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

100

Ranked Packages

15 packages

#1 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 119.7K imported-by 100% confidence
97

#2 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 343 imported-by 100% confidence
91

#3 Zerolog

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

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

#4 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
89

#5 log

Go Logging Libraries 0 stars 3.2K imported-by 75% confidence
74

#6 oops

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

Go Logging Libraries 0 stars 332 imported-by 75% confidence
74

#7 porter

Package porter implements the Porter stemming algorithm.

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

#8 eris

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

Go Logging Libraries 0 stars 1.2K imported-by 45% confidence
61

#9 graphlib

Topological sort lib,Sorting and pruning of DAG graphs.

Go Logging Libraries 0 stars 1 imported-by 80% confidence
58

#10 log

Package log implements a simple structured logging API designed with few assumptions.

Go Logging Libraries 0 stars 4.7K imported-by 80% confidence
58

#11 log

Package log provides a structured logger.

Go Logging Libraries 0 stars 4.5K imported-by 75% confidence
55

#12 gone/jconf

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

Go Logging Libraries 51 stars 0 imported-by 100% confidence
53

#13 go-stem

Implementation of the porter stemming algorithm.

Go Logging Libraries 0 stars 40 imported-by 80% confidence
46

#14 slog-multi

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

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

#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 70% confidence
40

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
Zap 97 95 100 92 119.7K
phuslu/log 91 83 100 92 343
Zerolog 91 83 100 92 30.5K
Logrus 89 95 100 70 0
log 74 83 60 92 3.2K
oops 74 90 43 92 332
porter 61 75 15 92 2
eris 61 48 60 92 1.2K
graphlib 58 63 12 92 1
log 58 15 69 92 4.7K
log 55 15 62 92 4.5K
gone/jconf 53 15 44 92 0
go-stem 46 15 34 92 40
slog-multi 44 48 7 70 0
log 40 15 19 70 4

Related Comparisons

Go Logging Libraries

Zap vs Zerolog

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

97

Zerolog vs phuslu/log

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

91

Zap vs phuslu/log

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

97

Zerolog vs log

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

91

phuslu/log vs log

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

91

Zap vs log

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

97