For Python developers using FastAPI, Django & Flask

See every request, error & log from your Python backend

Add 3 lines of code to your app. Get instant visibility into every HTTP request, exception, and custom log — all in a real-time dashboard you'll actually enjoy using.

3 lines
To integrate
<0.1ms
Overhead per request
100%
Open Source

Start monitoring in under 5 minutes

No complex setup. No infrastructure to manage. Just install, configure, and go.

1

Install the SDK

One command to add Ledger to your Python project. Supports Python 3.10+.

pip install ledger-sdk
2

Add the middleware

Drop in our middleware for FastAPI, Django, or Flask. Auto-captures all requests.

from ledger import LedgerClient
from ledger.integrations.fastapi import LedgerMiddleware

ledger = LedgerClient(api_key="your_key")
app.add_middleware(LedgerMiddleware, ledger_client=ledger)
3

See your logs

Every request, response, and exception appears in your dashboard instantly.

Everything captured, nothing missed

The SDK automatically captures requests and exceptions. You focus on building — we handle the observability.

Automatic Request Logging

Every HTTP request is captured automatically — method, path, status code, duration, and headers. No manual instrumentation needed.

Exception Tracking

Exceptions are caught with full stack traces, grouped by type, and tracked over time. Know exactly what broke and when.

Custom Log Messages

Add context with ledger.log_info() and ledger.log_error(). Attach custom attributes like user IDs, order amounts, or any metadata.

Per-Project API Keys

Create separate API keys for each project or environment. Revoke access instantly without affecting other projects.

Performance Insights

Identify slow endpoints with response time tracking. See which routes are bottlenecks and need optimization.

Powerful Filtering

Filter logs by level, endpoint, time range, or custom attributes. Find the needle in the haystack in seconds.

Stop guessing what your backend is doing

Create a free account, grab your API key, and see your first logs in under 5 minutes.

Start monitoring now