Python SDK

Python logging
that scales with you

Add powerful logging, distributed tracing, and metrics to your Python apps in minutes. Works beautifully with Flask, FastAPI, and Django.

Type hints included
Async ready
terminal
$pip install loggydev-py
Successfully installed loggydev-py-0.1.0
$ python app.py
[12:34:56] INFO Server started on port 8000
[12:34:57] INFO User authenticated { user_id: 42 }
[12:34:58] WARN Rate limit approaching
[12:34:59] Synced to Loggy cloud
Python 3.9+
Real-time sync

Get started in 3 steps

From pip install to production-ready logging in under a minute

1

Install the SDK

$ pip install loggydev-py
2

Initialize Loggy

from loggy import Loggy
logger = Loggy(
identifier= "my-app",
remote={ "token": "..."}
)
3

Start logging

logger.info("Hello world!")
logger.warn("Watch out")
logger.error("Oops!")

Works with your favorite frameworks

First-class middleware for Flask, FastAPI, and more

Flask

Flask

Automatic request tracing

from flask import Flask
from loggy import Tracer, flask_tracing_middleware
app = Flask(__name__)
tracer = Tracer(service_name="my-app", ...)
flask_tracing_middleware(tracer)(app)
FastAPI

FastAPI

Async-native middleware

from fastapi import FastAPI
from loggy import Tracer, fastapi_tracing_middleware
app = FastAPI()
tracer = Tracer(service_name="my-app", ...)
app.add_middleware(
fastapi_tracing_middleware(tracer)
)

Built for Python developers

Everything you need for production-grade observability

Type Hints

Full type annotations for IDE autocomplete and type checking with mypy.

Distributed Tracing

W3C Trace Context support. Track requests across your microservices.

End-to-End Encryption

AES-256-GCM + RSA-OAEP encryption. Your logs encrypted before leaving your server.

Performance Metrics

Track RPM, response times, and throughput. Visualize in your dashboard.

Beautiful Console

Colored, formatted output locally. Timestamps, levels, and metadata beautifully displayed.

Context Manager

Pythonic API with context managers. Automatic cleanup on exit.

Pythonic API design

Context managers, type hints, and async support. Feels right at home in your Python codebase.

Flask & FastAPI middleware
Async/await support
Context manager protocol
Python 3.9+ compatible
# FastAPI with tracing
from fastapi import FastAPI
from loggy import Loggy, Tracer
app = FastAPI()
logger = Loggy(identifier="my-api")
tracer = Tracer(service_name="my-api")
@app.get("/")
async def hello():
with tracer.start_span("handle") as span:
logger.info("Request received")
span.set_attribute("user", "john")
return {"msg": "Hello!"}

Why developers choose Loggy

Compared to other Python logging solutions

Feature Loggy logging loguru structlog
Cloud Dashboard
Distributed Tracing
Performance Metrics
E2E Encryption
Zero Config
Framework Middleware ~
Newsletter

Python tips & tutorials

Get the latest Python logging best practices, performance tips, and Loggy updates delivered to your inbox.

No spam, unsubscribe anytime. We respect your privacy.

Ready to level up your Python logging?

Start for free. No credit card required.