SaaSHub helps you find the best software and product alternatives Learn more β
Top 17 Go structured-logging Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
slog-multi
π¨ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
fault
Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors. (by Southclaws)
-
Kiwi Logs&Context
Fast, structured, with filters and dynamic sinks. No levels. Logger & context keeper for Go language π₯ It smells like a mushroom. (by grafov)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: Golang Logging Configuration with Zap: Practical Implementation Tips | dev.to | 2024-05-17
Be aware that there is a performance impact compared to using zerolog directly [0] (my uneducated guess is it is likely due to pointer indirection).
[0]: https://github.com/rs/zerolog/issues/571#issuecomment-166202...
I built a drop-in replacement to `error` recently. Instead of manipulating strings, it adds context, stacktrace... in a structured way.
https://github.com/samber/oops
A guide covering how to write custom handlers is out of scope for this post, but you can find one such guide written by the author of slog here. Thankfully, you donβt need to write a handler from scratch to use one. There are several community-contributed handlers, including handlers that allow you to output colored logs, and a handler that lets you implement sampling. You can find a full list here.
Project mention: All you need is Wide Events, not "Metrics, Logs and Traces" | news.ycombinator.com | 2024-02-27There seems to be somebody trying to do the second idea for Go's slog package: https://github.com/samber/slog-parquet
Go structured-logging related posts
-
Golang Logging Configuration with Zap: Practical Implementation Tips
-
Go structured logging log/slog middleware
-
Desvendando o package fmt do Go
-
Kubebuilder Tips and Tricks
-
Slogtest
-
Go 1.21 Released
-
Efficient logging in Go?
-
A note from our sponsor - SaaSHub
www.saashub.com | 31 May 2024
Index
What are some of the best open-source structured-logging projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | zap | 21,113 |
2 | zerolog | 9,949 |
3 | phuslu/log | 613 |
4 | slog | 329 |
5 | slog-multi | 263 |
6 | jl | 235 |
7 | oops | 183 |
8 | fault | 150 |
9 | slog-formatter | 91 |
10 | slog-gin | 78 |
11 | slog-sampling | 41 |
12 | slog-sentry | 35 |
13 | slogx | 28 |
14 | Kiwi Logs&Context | 24 |
15 | slog-parquet | 10 |
16 | slogmw | 8 |
17 | slog-datadog | 8 |
Sponsored