Top 23 Go Logging Projects
-
logrus
Structured, pluggable logging for Go.
Based on this snippet, it might be worth checking what logrus.PanicLevel is set to, inside your unit test.
-
loki
Like Prometheus, but for logs.
Project mention: ClickHouse as an alternative to Elasticsearch for log storage and analysis | news.ycombinator.com | 2021-03-02Promtail/Loki https://github.com/grafana/loki is an alternative to elk, but while it seems more lightweight, it definitely is less featureful. The integration with grafana/prometheus seems nice, but I've only toyed with it, not used in production.
-
Scout
Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
-
zap
Blazing fast, structured, leveled logging in Go.
-
stern
⎈ Multi pod and container log tailing for Kubernetes
Link : https://github.com/wercker/stern
-
zerolog
Zero Allocation JSON Logger
i dont know zerolog, from my quick research, i found this
-
spew
Implements a deep pretty printer for Go data structures to aid in debugging
-
go-grpc-middleware
Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.
And initialize our gRPC service, here i used gRPC Middleware repository for unary interceptors:
-
glog
Leveled execution logs for Go (by golang)
Read similar repos, compare, learn: https://github.com/rs/zerolog https://christine.website/blog/ln-the-natural-logger-2020-10-17 https://github.com/sirupsen/logrus https://github.com/golang/glog https://github.com/nikandfor/tlog (this one is mine)
-
lumberjack
lumberjack is a log rolling package for Go
I've used this before and it works well: https://github.com/natefinch/lumberjack
-
tail
Go package for reading from continously updated files (tail -f)
-
seelog
Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.
-
kail
kubernetes log viewer
For the command line, there is also kail: https://github.com/boz/kail
-
log
Structured logging package for Go. (by apex)
-
log15
Structured, composable logging for Go
-
Onelog
Dead simple, super fast, zero allocation and modular logger for Golang
-
logxi
A 12-factor app logger built for performance and happy development
-
phuslu/log
Structured Logging Made Easy (by phuslu)
-
logutils
Utilities for slightly better logging in Go (Golang).
-
go-logger
Simple logger for Go programs. Allows custom formats for messages.
-
stern
⎈ Multi pod and container log tailing for Kubernetes -- Friendly fork of https://github.com/wercker/stern (by stern)
Project mention: What's the best CLI tailing tool for k8s logs? | reddit.com/r/kubernetes | 2021-01-20It is outdated and I had lot of trouble using it with recent Kubernetes versions as the client code is rather old. I have used this friendly fork instead: https://github.com/stern/stern
-
httpretty
Package httpretty prints the HTTP requests you make with Go pretty on your terminal. (by henvic)
-
sqldb-logger
A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.
-
logger
Minimalistic logging library for Go. (by azer)
Index
What are some of the best open-source Logging projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | logrus | 17,283 |
2 | loki | 12,397 |
3 | zap | 12,022 |
4 | stern | 4,793 |
5 | zerolog | 4,409 |
6 | spew | 4,248 |
7 | go-grpc-middleware | 3,350 |
8 | glog | 2,655 |
9 | lumberjack | 2,404 |
10 | tail | 2,019 |
11 | seelog | 1,531 |
12 | kail | 1,251 |
13 | log | 1,087 |
14 | log15 | 1,005 |
15 | Onelog | 387 |
16 | logxi | 346 |
17 | phuslu/log | 334 |
18 | logutils | 291 |
19 | go-logger | 261 |
20 | stern | 252 |
21 | httpretty | 213 |
22 | sqldb-logger | 158 |
23 | logger | 147 |