Go (Golang) logging libraries
Structured and fast loggers for Go, ranked by GitHub stars
更新于 · GitHub stars (stars)
为什么是这20个
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
-
2
-
3
-
4
lumberjack
Simple rolling logger, implements io.WriteCloser.
5,479 stars 660 forkslast push 2024-08-05GoMIT
-
5
-
6
tail
Go package striving to emulate the features of the BSD tail program.
2,779 stars 499 forkslast push 2022-10-25GoMIT
-
7
seelog
Logging functionality with flexible dispatching, filtering, and formatting.
1,632 stars 239 forkslast push 2019-03-04GoBSD-3-Clause
-
8
-
9
-
10
sentry-go
Sentry SDK for Go. Helps monitor and track errors with real-time alerts and performance monitoring.
1,108 stars 268 forkslast push 2026-11-20GoMIT
-
11
-
12
-
13
-
14
slog
Lightweight, configurable, extensible logger for Go.
557 stars 33 forkslast push 2026-11-17GoMIT
-
15
henvic/httpretty
Pretty-prints your regular HTTP requests on your terminal for debugging (similar to http.DumpRequest).
457 stars 17 forkslast push 2026-11-17GoMIT
-
16
onelog
Onelog is a dead simple but very efficient JSON logger. It is the fastest JSON logger out there in all scenarios. Also, it is one of the logger with the...
413 stars 17 forkslast push 2019-03-06GoMIT
-
17
sqldb-logger
A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.
379 stars 23 forkslast push 2025-12-05GoMIT
-
18
logutils
Utilities for slightly better logging in Go (Golang) extending the standard logger.
372 stars 35 forkslast push 2026-05-11GoMPL-2.0
-
19
logxi
12-factor app logger that is fast and makes you happy.
354 stars 48 forkslast push 2020-04-14GoMIT
-
20
go-playground/log
Simple, configurable and scalable Structured Logging for Go.
293 stars 19 forkslast push 2023-08-17GoMIT
参考资料
- avelino/awesome-go: Logging, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-21 00:10 UTC.
- avelino/awesome-go (Logging), GitHub community list, 70 tools with a public repository.