{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"},{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"A Python logging handler that sends log records to Grafana Loki via HTTP with support for custom labels and authentication.","skillfed_tags":["logging","loki","observability"],"use_cases":["Centralize Python application logs into Grafana Loki for unified log aggregation and querying.","Send application error and warning logs to Loki with custom labels for service identification.","Integrate Python services with a Loki-based observability stack without external log shipping agents.","Asynchronously forward logs to Loki using QueueHandler to avoid blocking application performance."],"what_it_does":"python-logging-loki is a Python logging handler that integrates with Grafana Loki, a log aggregation system. It captures log records from Python's standard logging module and ships them to a Loki instance via HTTP POST requests, attaching custom labels to organize and filter logs. The handler supports basic authentication and can operate in blocking mode or asynchronously via Python's built-in QueueHandler and QueueListener to avoid blocking application threads.\n\nThe package depends on requests for HTTP communication and rfc3339 for timestamp handling. It is designed for developers running Loki as their log backend who want to centralize Python application logs. The handler automatically includes message severity, logger name, and custom tags in each log entry sent to Loki.","worth_installing":"Yes, if you run Grafana Loki and need to ship Python logs to it. The package is straightforward, has low dependencies, and carries no known vulnerabilities. However, maintenance is dormant since 2019-11-28, so compatibility with recent Loki API changes or Python versions beyond 3.8 is unverified. For active projects, confirm the handler works with your Loki version before relying on it in production."},"id":"python-logging-loki","links":{"html":"https://skillfed.io/packages/python-logging-loki","md":"https://skillfed.io/packages/python-logging-loki.md","pypi":"https://pypi.org/project/python-logging-loki/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2019-11-28","license_spdx":null,"license_treatment":"permissive","name":"python-logging-loki","python_support":"supports_current","summary":"Python logging handler for Grafana Loki."},"popularity":{"monthly_downloads":1067188,"position":4410,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.3.1"}
