Integrations
Logly provides first-class integrations for popular Python frameworks, tools, and services. Each integration is a thin adapter that routes logs through Logly's Rust-powered engine.
Frameworks & Libraries
| Integration | Description | Install |
|---|---|---|
| FastAPI | ASGI middleware with request context, status codes, and timing | uv add logly[fastapi] |
| Django | Middleware and logging.Handler for Django | uv add logly[django] |
| Flask | Handler and request context for Flask | uv add logly[flask] |
| Starlette | ASGI middleware for plain Starlette apps | uv add logly[starlette] |
| Stdlib Logging | Bridge Python's logging module to Logly | Built-in |
| Gunicorn | Worker hooks for Gunicorn | uv add logly[gunicorn] |
| Uvicorn | Log configuration for Uvicorn | uv add logly[uvicorn] |
| SQLAlchemy | Engine event listener for query logging | uv add logly[sqlalchemy] |
| Structlog | Processor for structlog | uv add logly[structlog] |
| Rich | Beautiful terminal output via Rich | uv add logly[rich] |
| Click | Route Click CLI output through Logly | uv add logly[click] |
| Typer | Route Typer CLI output through Logly | uv add logly[typer] |
| APScheduler | Route APScheduler job logs through Logly | uv add logly[apscheduler] |
| RQ | Route RQ worker job logs through Logly | uv add logly[rq] |
| Celery | Task logging for Celery workers | uv add logly[celery] |
| Propagate | Propagate records to stdlib logging hierarchy | Built-in |
Observability & Monitoring
| Integration | Description | Install |
|---|---|---|
| OpenTelemetry | Export log records to OTel collectors | uv add logly[opentelemetry] |
| Prometheus | Expose log metrics via Prometheus | uv add logly[prometheus] |
| Loki | Ship logs to Grafana Loki | uv add logly[loki] |
| Sentry | Forward error logs to Sentry | uv add logly[sentry] |
| Elasticsearch | Index logs into Elasticsearch | uv add logly[elasticsearch] |
| Telemetry | Generic telemetry sink for custom backends | Built-in |
Data Stores & Message Brokers
| Integration | Description | Install |
|---|---|---|
| Redis | Push logs to Redis lists or streams | uv add logly[redis] |
| Kafka | Publish logs to Kafka topics | uv add logly[kafka] |
| MongoDB | Insert logs into MongoDB collections | uv add logly[mongodb] |
| PostgreSQL | Insert logs into PostgreSQL tables | uv add logly[postgresql] |
| RabbitMQ | Publish logs to RabbitMQ queues | uv add logly[rabbitmq] |
Notifications & Webhooks
| Integration | Description | Install |
|---|---|---|
| Discord | Send logs to Discord webhooks | Built-in |
| Slack | Send logs to Slack webhooks | Built-in |
| Send logs as emails via SMTP | Built-in | |
| HTTP | Send logs to any HTTP endpoint | Built-in |
