awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Go Structured Logging Libraries

Ranking updated Jun 30, 2026

For a structured logging library for Go, the strongest matches are rs/zerolog (Zerolog is a fast, zero-allocation structured logging library for), charmbracelet/log (charmbracelet/log is a Go structured logging library that outputs) and uber-go/zap (Zap is a production-grade structured logging library for Go). sirupsen/logrus and inconshreveable/log15 round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

High-performance logging frameworks for Go that output machine-readable formats like JSON for centralized log analysis.

Go Structured Logging Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • rs/zerologrs avatar

    rs/zerolog

    12,220View on GitHub↗

    Zerolog is a structured logging library for Go designed for high-performance event capture and observability. It focuses on generating machine-readable JSON output while minimizing memory overhead through zero-allocation buffer encoding and strongly-typed field validation. The library distinguishes itself by providing a chainable, context-aware interface that allows developers to bind trace identifiers and metadata directly to request lifecycles. It supports complex diagnostic workflows by enabling independent logger instances, custom output routing to multiple concurrent destinations, and ev

    Zerolog is a fast, zero-allocation structured logging library for Go that produces JSON output, supports leveled logging, context fields, and flexible output routing — exactly what this search is after.

    GoHigh-Performance LoggingMulti-Writer MultiplexersContextual Logging
    View on GitHub↗12,220
  • charmbracelet/logcharmbracelet avatar

    charmbracelet/log

    3,121View on GitHub↗

    This is a structured logging library designed to produce logs using key-value pairs, severity levels, and machine-readable formats. It provides a toolkit for creating logs that are consistent for both human review and machine parsing. The project is distinguished by its focus on terminal visualization, using a styling system to apply colors and prefixes to log entries for improved readability in consoles. It also includes a specialized adapter to convert standard library log calls into structured events by inferring severity levels from message prefixes. The library manages metadata through

    charmbracelet/log is a Go structured logging library that outputs JSON with severity levels and key-value context fields, includes a standard library adapter, and supports filtering and formatting, making it a strong fit for producing structured, leveled log entries.

    GoStructured Log Field AttachmentsContextual Logging
    View on GitHub↗3,121
  • uber-go/zapuber-go avatar

    uber-go/zap

    24,329View on GitHub↗

    Zap is a high-performance structured logging library designed for production environments. It provides a framework for generating machine-readable logs that minimize memory overhead and CPU usage, allowing for efficient event analysis and system monitoring. The library distinguishes itself through a focus on zero-allocation logging, utilizing buffer pooling to reduce garbage collection pressure during high-frequency operations. It enforces strict data typing through compile-time checks and structured field encoding, which ensures consistent output without the performance cost of reflection-ba

    Zap is a production-grade structured logging library for Go that provides leveled logging, JSON output, typed context fields, hooks/middleware support, and multiple output targets, all with high performance and zero-allocation design — exactly the structured logging library this search targets.

    GoHigh-Performance Logging
    View on GitHub↗24,329
  • sirupsen/logrussirupsen avatar

    sirupsen/logrus

    25,736View on GitHub↗

    Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON formatting. It serves as a pluggable logging framework providing a thread-safe event logger with configurable mutex locking to manage concurrent writes across multiple goroutines. The project distinguishes itself through a pluggable hook system that routes log entries to external services or custom destinations. It also features a contextual logger capable of attaching persistent metadata and request-scoped fields to entries to improve traceability. The framework covers broad ob

    Logrus is a structured logging library for Go that provides leveled logging, JSON output, context fields via a contextual logger, and a pluggable hook system for multiple output targets, making it a comprehensive fit for your requirements.

    GoLog Severity Categorization
    View on GitHub↗25,736
  • inconshreveable/log15inconshreveable avatar

    inconshreveable/log15

    1,103View on GitHub↗

    Structured, composable logging for Go

    log15 is a structured, leveled logging library for Go that outputs JSON with rich context fields and offers composable handlers for multiple targets, closely matching the request for a high-performance, standard-library-compatible library.

    GoLoggingLogging Libraries
    View on GitHub↗1,103
  • apex/logapex avatar

    apex/log

    1,377View on GitHub↗

    apex/log is a Go logging library offering leveled logging and structured JSON output, making it a solid fit for producing structured log entries with context fields as requested.

    GoLoggingLogging Libraries
    View on GitHub↗1,377
  • phuslu/logphuslu avatar

    phuslu/log

    860View on GitHub↗

    Fastest structured logging

    phuslu/log is a Go structured logging library focused on high performance and JSON output, making it a solid fit for producing leveled, structured log entries in Go.

    GoLoggingLogging Libraries
    View on GitHub↗860

Related searches

  • a logging library for Rust applications
  • a lightweight logging library for C++
a php library for application logging
  • a logging library for C# applications
  • a python library for application logging
  • a logging library for Ruby applications
  • a high performance JSON library for Go
  • a lightweight logging library for JavaScript applications