awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
rs avatar

rs/zerolog

0
View on GitHub↗
12,220 星标·613 分支·Go·mit·5 次浏览

Zerolog

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 event-based sampling to manage log volume and storage costs.

Beyond its core structured output, the toolkit includes features for local development, such as transforming machine-readable data into colorized, human-friendly console text. It also maintains compatibility with existing systems by providing adapters that wrap standard library logging interfaces, allowing for the integration of modern diagnostic capabilities into legacy codebases.

Features

  • Go - Provides a toolkit for capturing application events and request context to simplify debugging and observability in Go.
  • High-Performance Logging - Provides a logging framework optimized for minimal resource consumption and high throughput in complex applications.
  • Structured Logging Frameworks - Generates high-performance, machine-readable JSON logs with strongly-typed fields for detailed observability.
  • Contextual Metadata Propagation - Automatically binds trace identifiers and metadata to request lifecycles for consistent observability.
  • Zero-Allocation Buffer Encoders - Serializes log events directly into reusable buffers to minimize memory allocation overhead.
  • Contextual Logging - Binds trace identifiers and metadata to request contexts to ensure logs remain traceable throughout the application lifecycle.
  • Logging - Zero-allocation JSON logging.
  • Logging - High-performance zero-allocation logging.
  • Logging Frameworks - Zero-allocation JSON logger for Go.
  • Logging Libraries - Zero-allocation JSON logger.
  • Distributed Tracing - Binds trace identifiers to request lifecycles to ensure logs remain traceable across distributed system components.
  • Sampling Strategies - Reduces total log volume by applying sampling strategies based on frequency or burst thresholds.
  • Standard Library Adapters - Provides adapters that wrap standard library logging interfaces to maintain compatibility with legacy codebases.
  • Sampling Strategies - Reduces log storage overhead by applying frequency-based sampling to system events.
  • Log Management - Reduces total log storage costs by applying sampling strategies based on frequency or burst thresholds.
  • Logging Pipelines - Broadcasts log messages to multiple destinations simultaneously, such as standard output, files, or remote services.
  • Multi-Writer Multiplexers - Broadcasts log streams to multiple concurrent destinations by delegating to registered output handlers.
  • Diagnostic Compatibility Layers - Wraps existing logging interfaces to maintain compatibility with older codebases.
  • Type Safety - Enforces data integrity and prevents errors through strict validation and structured type definitions during log field construction.
  • Independent Logger Instances - Supports creating independent logger instances to route messages to specific destinations or apply unique configurations.
  • Custom Log Writers - Executes user-defined functions before writing log events to inject dynamic fields or send data to external systems.
  • Logging Compatibility Adapters - Maintains compatibility with legacy logging interfaces while providing modern diagnostic capabilities.

Star 历史

rs/zerolog 的 Star 历史图表rs/zerolog 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

rs/zerolog 是做什么的?

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.

rs/zerolog 的主要功能有哪些?

rs/zerolog 的主要功能包括:Go, High-Performance Logging, Structured Logging Frameworks, Contextual Metadata Propagation, Zero-Allocation Buffer Encoders, Contextual Logging, Logging, Logging Frameworks。

rs/zerolog 有哪些开源替代品?

rs/zerolog 的开源替代品包括: sirupsen/logrus — Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON… uber-go/zap — Zap is a high-performance structured logging library designed for production environments. It provides a framework for… gabime/spdlog — spdlog is a high-performance C++ logging library designed to record diagnostic messages and application events. It… hynek/structlog — structlog is a structured logging library for Python that treats log entries as dictionaries instead of strings. This… pinojs/pino — Pino is a high-performance logging library for Node.js applications designed to minimize overhead and prevent blocking… winstonjs/winston — Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a…

Zerolog 的开源替代方案

相似的开源项目,按与 Zerolog 的功能重合度排序。
  • sirupsen/logrussirupsen 的头像

    sirupsen/logrus

    25,736在 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

    Gogologginglogrus
    在 GitHub 上查看↗25,736
  • uber-go/zapuber-go 的头像

    uber-go/zap

    24,329在 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

    Gogolangloggingstructured-logging
    在 GitHub 上查看↗24,329
  • gabime/spdloggabime 的头像

    gabime/spdlog

    28,922在 GitHub 上查看↗

    spdlog is a high-performance C++ logging library designed to record diagnostic messages and application events. It serves as an asynchronous logging framework and thread-safe library that coordinates access across concurrent threads to maintain message integrity. The project functions as a multi-target log router, distributing single events to multiple destinations such as consoles, files, and system daemons. It includes a log rotation manager that handles file lifecycles through basic, rotating, or daily rollover strategies to prevent disk exhaustion. The library covers a broad range of cap

    C++cppcpp11header-only
    在 GitHub 上查看↗28,922
  • hynek/structloghynek 的头像

    hynek/structlog

    4,835在 GitHub 上查看↗

    structlog is a structured logging library for Python that treats log entries as dictionaries instead of strings. This data-centric approach enables machine-readable output and precise data analysis by generating log entries as key-value pairs. It functions as both a standalone logging framework and a compatibility layer that adds structured capabilities to the Python standard library logging module. The library features a processor-pipeline architecture that passes log dictionaries through a sequence of functions to modify events or add metadata before final rendering. It includes a contextua

    Python
    在 GitHub 上查看↗4,835
查看 Zerolog 的所有 30 个替代方案→