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

Python Logging Libraries

Ranking updated Jul 13, 2026

For a python library for application logging, the strongest matches are hynek/structlog (structlog is a comprehensive, industry-standard library for structured logging), delgan/loguru (Loguru is a comprehensive Python logging library that provides) and madzak/python-json-logger (This library provides structured JSON output for standard Python). charmbracelet/log and pamburus/hl round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

We curate open-source GitHub repositories matching “best python logging libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Python Logging Libraries

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

    hynek/structlog

    4,835View on 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

    structlog is a comprehensive, industry-standard library for structured logging in Python that provides powerful contextual management, asynchronous-friendly processing, and seamless integration with standard logging backends.

    PythonAsynchronous LoggingContextual LoggingStructured Log Capture
    View on GitHub↗4,835
  • delgan/loguruDelgan avatar

    Delgan/loguru

    23,964View on GitHub↗

    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

    Loguru is a comprehensive Python logging library that provides structured logging, log rotation, and thread-safe operations, making it a strong choice for application observability despite lacking native distributed tracing.

    PythonStructured LoggingStructured Logging FrameworksStructured Log Serializers
    View on GitHub↗23,964
  • madzak/python-json-loggermadzak avatar

    madzak/python-json-logger

    1,761View on GitHub↗

    Overview This library is provided to allow standard python logging to output log data as json objects. With JSON we can make our logs more readable by machines and we can stop writing custom parsers for syslog type records.

    This library provides structured JSON output for standard Python logging, which directly addresses the core requirement for machine-readable logs even though it relies on the built-in logging module for features like rotation and asynchronous handling.

    PythonLogging and Output
    View on GitHub↗1,761
  • 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

    This is a structured logging library for the Go ecosystem, making it the wrong language and platform for a Python-specific logging requirement.

    GoContextual LoggingStructured Logging
    View on GitHub↗3,121
  • pamburus/hlpamburus avatar

    pamburus/hl

    2,912View on GitHub↗

    hl is a set of command-line interface tools for filtering, aggregating, streaming, and visualizing structured log data across multiple sources. It functions as a log filter, file aggregator, real-time streamer, and structured log viewer. The project specializes in transforming JSON and logfmt data into human-readable formats for visual analysis. It enables the merging of multiple log files and compressed archives into a single chronologically sorted stream, while supporting live tracking of multiple sources into a unified real-time view. Capabilities include field-based filtering via key-val

    This is a command-line utility for viewing and aggregating existing log files rather than a Python library for application-level logging and observability instrumentation.

    RustLog AggregationStructured Logging
    View on GitHub↗2,912
  • gabime/spdloggabime avatar

    gabime/spdlog

    28,922View on 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

    This is a high-performance C++ logging library, which does not meet the requirement for a Python-based tool for application logging and observability.

    C++Asynchronous LoggingContextual Logging
    View on GitHub↗28,922
  • aws-powertools/powertools-lambda-pythonaws-powertools avatar

    aws-powertools/powertools-lambda-python

    3,267View on GitHub↗

    AWS Powertools for Python is a utility framework designed for building production-ready Python functions on AWS Lambda. It provides a comprehensive suite of tools for observability, event parsing, routing, and idempotency management to streamline the development of serverless applications. The project distinguishes itself through specialized capabilities for event-driven architectures and AI agent orchestration. It enables the implementation of AI agents by exposing functions as tools via OpenAPI schemas and managing conversation states. Additionally, it features an idempotency library that p

    This is a specialized serverless utility framework for AWS Lambda rather than a general-purpose Python logging library, though it does include structured logging and observability features tailored for cloud-native environments.

    PythonStructured LoggingStructured Logging FrameworksEvent Logging
    View on GitHub↗3,267

Related searches

  • a logging library for Ruby applications
  • a php library for application logging
  • a logging library for Rust applications
  • a logging framework for Java applications
  • a lightweight logging library for C++
  • a logging library for C# applications
  • a lightweight logging library for JavaScript applications
  • a structured logging library for Go