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

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

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

Delgan/loguru

0
View on GitHub↗
23,964 星标·797 分支·Python·MIT·9 次浏览loguru.readthedocs.io↗

Loguru

Loguru is a Python logging library and thread-safe framework designed for recording system events and diagnostic messages. It functions as a structured logging tool that can serialize messages into JSON strings with metadata for automated parsing and analysis.

The library includes a specialized exception tracker that captures unhandled crashes across main and background threads, rendering detailed stack traces that include local variable values. It further distinguishes itself through a unified routing pipeline that can intercept messages from the standard library logging module and dispatch them to multiple output destinations.

The framework provides comprehensive log storage management, including automated file rotation, compression, and retention policies. It ensures data integrity across multiple threads and processes using asynchronous message queuing and improves efficiency by deferring the evaluation of expensive log expressions until emission.

Configuration can be managed through custom severity levels and system environment variables.

Features

  • Application Logging - Provides a standardized framework for recording system events and diagnostic messages in Python applications.
  • Structured Log Serializers - Serializes log messages and metadata into JSON strings for automated parsing and analysis.
  • Logging Libraries - Provides a simplified and powerful interface for recording diagnostic messages in Python.
  • Variable Introspection - Renders detailed exception logs that include local variable values to accelerate troubleshooting.
  • Exception Traceback Capture - Captures unhandled crashes and renders detailed stack traces with variable values for faster debugging.
  • Process Exception Interception - Hooks into the runtime to capture uncaught exceptions from both main and background threads.
  • Thread-Safe Logging - Ensures log integrity across multiple threads and processes using an asynchronous message queuing system.
  • Thread-Safe Logging Frameworks - Ensures log integrity across multiple threads and processes using asynchronous message queuing.
  • Application Event Loggers - Captures system events and exceptions across application modules to facilitate debugging and auditing.
  • Application Log Routing - Implements a routing system to dispatch log messages to multiple destinations based on category and configuration.
  • Log Rotation Utilities - Provides automated log rotation, compression, and retention policies to manage disk space.
  • Structured Logging - Serializes log messages into JSON strings with metadata for automated parsing and analysis.
  • Structured Logging Frameworks - Implements a framework for generating machine-readable JSON logs to facilitate production analysis.
  • Deferred Log Evaluation - Defers the execution of expensive string formatting and function calls until the logging level confirms emission.
  • Variable-Aware Formatting - Renders detailed exception logs that include variable values within the stack trace for faster debugging.
  • Custom Severity Levels - Allows the runtime definition and registration of custom severity levels for granular event categorization.
  • Log Sinks - Dispatches log records to multiple pluggable output destinations through a unified configuration interface.
  • Logging Pipelines - Implements a unified routing pipeline that intercepts standard library logs and dispatches them to multiple destinations.
  • Standard Library Interceptors - Captures messages from the built-in Python logging module and propagates them through a unified processing pipeline.
  • Logging - Library for simplified, enjoyable logging.
  • 开发者工具 - Simplified logging library.
  • General Utilities - Simplified logging library for Python.
  • Logging and Output - Simplifies logging with a clean, easy-to-use API.
  • Logging Frameworks - Simplified and user-friendly logging for Python.

Star 历史

delgan/loguru 的 Star 历史图表delgan/loguru 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

Loguru 的开源替代方案

相似的开源项目,按与 Loguru 的功能重合度排序。
  • winstonjs/winstonwinstonjs 的头像

    winstonjs/winston

    24,478在 GitHub 上查看↗

    Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a multi-transport log manager that routes data to various destinations and a structured log formatter that transforms entries into JSON or plain text. The project is distinguished by its pluggable transport architecture, which decouples the logging interface from delivery mechanisms. This allows for the creation of custom transport extensions and the use of hierarchical logger instances to inherit configurations while attaching persistent metadata to downstream messages. The libr

    JavaScript
    在 GitHub 上查看↗24,478
  • 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
  • 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
  • amrayn/easyloggingppamrayn 的头像

    amrayn/easyloggingpp

    3,937在 GitHub 上查看↗

    Easyloggingpp is a C++ logging library and thread-safe logging framework used for recording diagnostic messages and application events. It functions as an asynchronous logger, processing messages on a background thread to reduce latency and prevent blocking the main execution path. The project includes a log rotation manager to automatically truncate or roll over files once they reach a specified disk size limit. It also serves as a performance tracking tool for measuring function execution timing and recording checkpoints to identify processing bottlenecks. The library covers a broad range

    C++
    在 GitHub 上查看↗3,937
查看 Loguru 的所有 30 个替代方案→

常见问题解答

delgan/loguru 是做什么的?

Loguru is a Python logging library and thread-safe framework designed for recording system events and diagnostic messages. It functions as a structured logging tool that can serialize messages into JSON strings with metadata for automated parsing and analysis.

delgan/loguru 的主要功能有哪些?

delgan/loguru 的主要功能包括:Application Logging, Structured Log Serializers, Logging Libraries, Variable Introspection, Exception Traceback Capture, Process Exception Interception, Thread-Safe Logging, Thread-Safe Logging Frameworks。

delgan/loguru 有哪些开源替代品?

delgan/loguru 的开源替代品包括: winstonjs/winston — Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a… sirupsen/logrus — Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON… gabime/spdlog — spdlog is a high-performance C++ logging library designed to record diagnostic messages and application events. It… amrayn/easyloggingpp — Easyloggingpp is a C++ logging library and thread-safe logging framework used for recording diagnostic messages and… qos-ch/logback — Logback is a Java logging framework used to record system events and diagnostic messages through a programmable API.… serilog/serilog — Serilog is a structured logging library for .NET applications that records events as rich data objects instead of…