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 Logrus, Zerolog, Zap.

Best overall

Logrus

Highest combined package health score.

96
Best maintained

Logrus

Strongest maintenance signal in this category.

95
Most adopted

Logrus

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

100

Ranked Packages

15 packages

#1 Logrus

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

Go Logging Libraries 25.7K stars 240.0K imported-by 100% confidence
96

#2 Zerolog

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

Go Logging Libraries 12.4K stars 30.5K imported-by 90% confidence
87

#3 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 0 imported-by 65% confidence
87

#4 phuslu/log

Fastest structured logging

Go Logging Libraries 0 stars 343 imported-by 80% confidence
73

#5 slog-multi

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

Go Logging Libraries 0 stars 237 imported-by 80% confidence
73

#6 oops

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

Go Logging Libraries 0 stars 332 imported-by 40% confidence
59

#7 log

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

#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 80% confidence
54

#9 porter

This is a fairly straightforward port of Martin Porter's C implementation of the Porter stemming algorithm.

Go Logging Libraries 0 stars 2 imported-by 45% confidence
52

#10 graphlib

Topological sort lib,Sorting and pruning of DAG graphs.

Go Logging Libraries 0 stars 1 imported-by 45% confidence
51

#11 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 0 imported-by 25% confidence
44

#12 log

Package log provides a structured logger.

Go Logging Libraries 0 stars 0 imported-by 20% confidence
43

#13 gone/jconf

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

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

#14 log

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

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

#15 go-stem

Implementation of the porter stemming algorithm.

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

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
Logrus 96 95 100 92 240.0K
Zerolog 87 83 100 70 30.5K
Zap 87 88 100 70 0
phuslu/log 73 83 50 92 343
slog-multi 73 83 47 92 237
oops 59 48 43 92 332
log 56 83 5 70 0
eris 54 15 60 92 1.2K
porter 52 48 15 92 2
graphlib 51 48 12 92 1
log 44 48 7 70 0
log 43 48 5 70 0
gone/jconf 38 15 7 92 0
log 36 15 7 70 0
go-stem 34 15 7 70 0

Related Comparisons

Go Logging Libraries

Logrus vs Zerolog

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

96

Zerolog vs phuslu/log

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

87

Logrus vs phuslu/log

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

96

Logrus vs slog-multi

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

96

phuslu/log vs slog-multi

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

73

Zerolog vs slog-multi

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

87