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

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
hynek avatar

hynek/structlog

0
View on GitHub↗
4,835 estrellas·278 forks·Python·2 vistaswww.structlog.org↗

Structlog

structlog es una librería de logging estructurado para Python que trata las entradas de log como diccionarios en lugar de cadenas. Este enfoque centrado en los datos permite una salida legible por máquina y un análisis de datos preciso al generar entradas de log como pares clave-valor. Funciona tanto como un framework de logging independiente como una capa de compatibilidad que añade capacidades estructuradas al módulo de logging de la biblioteca estándar de Python.

La librería cuenta con una arquitectura de tubería de procesadores que pasa los diccionarios de log a través de una secuencia de funciones para modificar eventos o añadir metadatos antes del renderizado final. Incluye una utilidad de logging contextual para vincular metadatos clave-valor a los loggers, asegurando la trazabilidad a través de límites de ejecución e hilos. Para entornos de alto volumen, proporciona un framework de logging asíncrono con métodos awaitable para evitar bloquear el bucle de eventos.

El proyecto cubre una amplia superficie de observabilidad, incluyendo renderizado multiformato para JSON y salida de consola coloreada, así como limitación de volumen de logs y filtrado por nivel de severidad. Admite el enrutamiento de datos de log procesados a servicios externos, diarios del sistema y sockets de red. Además, incluye utilidades para la verificación automatizada de logs para validar que las aplicaciones emitan las entradas de log y metadatos esperados durante las pruebas.

Features

  • Structured Log Capture - Treats log events as dictionaries and captures parameters as key-value pairs for precise querying and serialization.
  • Dictionary-Based Event Representation - Treats log entries as mutable dictionaries instead of strings to enable precise, machine-readable processing throughout the pipeline.
  • Standard Library Adapters - Provides compatibility layers that wrap standard library logging interfaces to inject structured capabilities into existing code.
  • Persistent Log Context - Provides mechanisms to attach predefined key-value pairs to loggers that are automatically included in all subsequent log entries.
  • Multi-Format Renderers - Converts structured log data into various formats including JSON and colorized text for both machine and human consumption.
  • Pipeline Architectures - Utilizes a pipeline architecture that passes log dictionaries through a sequence of independent functions to modify events.
  • Asynchronous Logging - Provides a logging system with awaitable methods to prevent blocking the event loop in high-volume asynchronous environments.
  • Contextual Logging - Provides utilities for binding key-value metadata to loggers to maintain traceability across execution boundaries.
  • Context Attachments - Attaches key-value pairs to a logger so all subsequent entries automatically include the same metadata.
  • Log Processing Pipelines - Passes log dictionaries through a processor pipeline to automatically enrich events with timestamps and call stacks.
  • Structured Logging - Creates machine-readable log entries as key-value pairs to enable precise filtering and automated data analysis.
  • Structured Logging Frameworks - Implements a logging framework that treats log entries as dictionaries for machine-readable output and precise analysis.
  • Log Formatters - Converts structured application events into JSON and logfmt for ingestion by centralized monitoring systems.
  • Console Log Formatting - Formats Python log output as colorized, human-readable text to simplify troubleshooting during active development.
  • Log Target Wrappers - Acts as a wrapper for standard library loggers to add structured capabilities while maintaining compatibility.
  • Console Log Formatters - Transforms structured log data into colorized, human-friendly console output for local development debugging.
  • Asynchronous Metadata Propagation - Passes metadata to background worker threads to maintain traceability across asynchronous execution boundaries.
  • Deferred Log Rendering - Implements a strategy that keeps logs in a structured format until final rendering to optimize processing and flexibility.
  • Thread-Local Context Management - Maintains global state across applications using thread-local storage to ensure log consistency without explicit parameter passing.
  • Severity Level Filtering - Controls which messages are emitted by filtering them based on predefined severity levels.
  • Centralized Logging Systems - Routes structured log data to external services and system journals for unified monitoring in distributed environments.
  • Global Log Contexts - Maintains application-wide shared data using local storage variables to ensure consistent logs across different components.
  • Log Event Filtering - Provides logic to determine whether a log event should be processed or discarded based on content criteria.
  • Log Frequency Throttling - Implements mechanisms to limit the rate of log emission to prevent system flooding during high-volume events.
  • Pluggable Logging Backends - Supports directing processed log data to interchangeable output destinations by decoupling event generation from delivery.
  • Log Message Assertions - Includes utilities to assert that specific log keys and metadata were emitted during automated test execution.
  • Logging - Structured logging framework.
  • Herramientas de desarrollo - Structured logging for Python.
  • Development Utilities - Structured logging for Python applications.
  • Logging and Output - Structured logging for production-ready applications.

Historial de estrellas

Gráfico del historial de estrellas de hynek/structlogGráfico del historial de estrellas de hynek/structlog

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Structlog

Proyectos open-source similares, clasificados según cuántas características comparten con Structlog.
  • sirupsen/logrusAvatar de sirupsen

    sirupsen/logrus

    25,736Ver en 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
    Ver en GitHub↗25,736
  • charmbracelet/logAvatar de charmbracelet

    charmbracelet/log

    3,121Ver en 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

    Gogolanglogging
    Ver en GitHub↗3,121
  • nlog/nlogAvatar de NLog

    NLog/NLog

    6,542Ver en GitHub↗

    NLog is an open-source logging framework for .NET that functions as a structured logging library and log routing engine. It captures log events with named parameters as searchable data rather than plain text and directs these messages to various output destinations based on severity and source. The framework is designed as an extensible platform, supporting custom targets, layout renderers, and filters that can be loaded from external assemblies or defined in code. It features a dynamic configuration system that allows logging targets, rules, and layouts to be updated via XML or programmatic

    C#aotaot-compatiblec-sharp
    Ver en GitHub↗6,542
  • winstonjs/winstonAvatar de winstonjs

    winstonjs/winston

    24,478Ver en 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
    Ver en GitHub↗24,478
Ver las 30 alternativas a Structlog→

Preguntas frecuentes

¿Qué hace hynek/structlog?

structlog es una librería de logging estructurado para Python que trata las entradas de log como diccionarios en lugar de cadenas. Este enfoque centrado en los datos permite una salida legible por máquina y un análisis de datos preciso al generar entradas de log como pares clave-valor. Funciona tanto como un framework de logging independiente como una capa de compatibilidad que añade capacidades estructuradas al módulo de logging de la biblioteca estándar de Python.

¿Cuáles son las características principales de hynek/structlog?

Las características principales de hynek/structlog son: Structured Log Capture, Dictionary-Based Event Representation, Standard Library Adapters, Persistent Log Context, Multi-Format Renderers, Pipeline Architectures, Asynchronous Logging, Contextual Logging.

¿Qué alternativas de código abierto existen para hynek/structlog?

Las alternativas de código abierto para hynek/structlog incluyen: sirupsen/logrus — Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON… charmbracelet/log — This is a structured logging library designed to produce logs using key-value pairs, severity levels, and… nlog/nlog — NLog is an open-source logging framework for .NET that functions as a structured logging library and log routing… winstonjs/winston — Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a… pinojs/pino — Pino is a high-performance logging library for Node.js applications designed to minimize overhead and prevent blocking… delgan/loguru — Loguru is a Python logging library and thread-safe framework designed for recording system events and diagnostic…