Go structured-logging

Open-source Go projects categorized as structured-logging

Top 17 Go structured-logging Projects

  • zap

    Blazing fast, structured, leveled logging in Go.

  • Project mention: Golang Logging Configuration with Zap: Practical Implementation Tips | dev.to | 2024-05-17
  • zerolog

    Zero Allocation JSON Logger

  • Project mention: Go 1.21 Released | news.ycombinator.com | 2023-08-08

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

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

    InfluxDB logo
  • phuslu/log

    Fastest structured logging (by phuslu)

  • slog

    Minimal structured logging library for Go (by coder)

  • slog-multi

    🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

  • jl

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

  • oops

    πŸ”₯ Error handling library with context, assertion, stack trace and source fragments

  • Project mention: Don't Return Err in Go | news.ycombinator.com | 2024-05-21

    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

  • SaaSHub

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

    SaaSHub logo
  • fault

    Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors. (by Southclaws)

  • slog-formatter

    🚨 slog: Attribute formatting

  • slog-gin

    🚨 Gin middleware for slog logger

  • slog-sampling

    🚨 slog sampling: drop repetitive log records

  • Project mention: Slog: Zero-dependency structured logging in Go | dev.to | 2023-11-04

    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.

  • slog-sentry

    🚨 slog: Sentry handler

  • slogx

    Simple slog wrapper for easy life, with opentelemetry tracing support

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

  • slog-parquet

    🚨 slog: Parquet handler + Object Storage

  • Project mention: All you need is Wide Events, not "Metrics, Logs and Traces" | news.ycombinator.com | 2024-02-27

    There seems to be somebody trying to do the second idea for Go's slog package: https://github.com/samber/slog-parquet

  • slogmw

    Middleware for the go standard library log/slog package

  • Project mention: Go structured logging log/slog middleware | news.ycombinator.com | 2023-12-21
  • slog-datadog

    🚨 slog: Datadog handler

  • SaaSHub

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

    SaaSHub logo
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).

Go structured-logging related posts

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