Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today. Learn more →
Top 14 Go structured-logging Projects
-
And finally for structured logging: https://github.com/uber-go/zap
-
Things I can't live without in a new Go project in no particular order:
- https://github.com/golangci/golangci-lint - meta-linter
- https://goreleaser.com - automate release workflows
- https://magefile.org - build tool that can version your tools
- https://github.com/ory/dockertest/v3 - run containers for e2e testing
- https://github.com/ecordell/optgen - generate functional options
- https://golang.org/x/tools/cmd/stringer - generate String()
- https://mvdan.cc/gofumpt - stricter gofmt
- https://github.com/stretchr/testify - test assertion library
- https://github.com/rs/zerolog - logging
- https://github.com/spf13/cobra - CLI framework
FWIW, I just lifted all the tools we use for https://github.com/authzed/spicedb
We've also written some custom linters that might be useful for other folks: https://github.com/authzed/spicedb/tree/main/tools/analyzers
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
-
-
Project mention: Jl: A command line tool for working with structured JSON logging | news.ycombinator.com | 2023-02-04
-
fault
Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors. (by Southclaws)
Project mention: Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors | /r/golang | 2022-10-30spike for better names in here: https://github.com/Southclaws/fault/pull/5
-
slog-multi
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
Project mention: Design workflows of x/exp/slog handlers: pipeline and fanout | /r/golang | 2023-04-10 -
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
-
Kiwi Logs&Context
Fast, structured, with filters and dynamic sinks. No levels. Logger & context keeper for Go language 🥝 It smell like a mushroom. (by grafov)
-
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go structured-logging related posts
- claim: qlog is faster, simpler and more efficient that slog; and does more practically useful stuff too
- slogx - slog package extensions and middlewares
- What is the common log library which is industry standard that is used in server applications?
- From code to customers in just 13 seconds.
- Go err handle
- Log: A minimal, colorful Go logging library 🪵
- Best Logging Library for Golang
-
A note from our sponsor - SonarLint
www.sonarlint.org | 4 Jun 2023
Index
What are some of the best open-source structured-logging projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | zap | 18,810 |
2 | zerolog | 8,276 |
3 | phuslu/log | 498 |
4 | slog | 286 |
5 | jl | 225 |
6 | fault | 131 |
7 | slog-multi | 43 |
8 | oops | 25 |
9 | Kiwi Logs&Context | 24 |
10 | slog-formatter | 15 |
11 | slog-sentry | 9 |
12 | go-metalog | 4 |
13 | slog-datadog | 1 |
14 | slog-gin | 1 |