Go structured-logging

Open-source Go projects categorized as structured-logging

Top 14 Go structured-logging Projects

  • zap

    Blazing fast, structured, leveled logging in Go.

    Project mention: Why elixir over Golang | /r/elixir | 2023-05-29

    And finally for structured logging: https://github.com/uber-go/zap

  • zerolog

    Zero Allocation JSON Logger

    Project mention: How to start a Go project in 2023 | news.ycombinator.com | 2023-05-23

    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.

  • phuslu/log

    High performance structured logging (by phuslu)

  • slog

    Minimal structured logging library for Go (by coder)

  • jl

    jl — JSON Logs, a development tool for working with structured JSON logging. (by koenbollen)

    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-30

    spike 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.

  • oops

    🔥 Error handling library with context, assertion, stack trace and source fragments (by samber)

  • 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)

  • slog-formatter

    🚨 slog: Attribute formatting

    Project mention: [slog-formatter] A few formatters for slog attributes | /r/golang | 2023-04-16
  • slog-sentry

    🚨 slog: Sentry handler

  • go-metalog

    Standard proposal with API for structured logging

  • slog-datadog

    🚨 slog: Datadog handler

  • slog-gin

    🚨 Gin middleware for slog logger

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-29.

Go structured-logging related posts


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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives