Python Logging Loki Handler

JSON →
library 0.3.1 ·python
verified May 22, 2026

The `python-logging-loki` library provides a handler for Python's standard `logging` module, allowing applications to send logs directly to Grafana Loki. It includes `LokiHandler` for synchronous logging and `LokiQueueHandler` for asynchronous, non-blocking log submission. The library supports custom labels, basic HTTP authentication, and explicit Loki API versioning. The current stable version is 0.3.1.

total hits 31
actors 9 distinct systems
last hit 1d ago MJ12bot
ByteDance
10
GPTBot
6
Script
2
ClaudeBot
1
PerplexityBot
1
Search engines
1
Humans
1

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇨🇦 Canada