Skip to main content

Installation


Initialise the client


Log methods

All methods accept:
  • meta — arbitrary dict of structured fields attached to the entry
  • tags — list of string tags for filtering in the UI
Console output: DEBUG/INFO go to stdout, WARN/ERROR go to stderr. Set console=False to suppress.

Flush and close


Standard library logging integration

Structured fields can be passed via extra={"meta": {...}}:

Flask integration


FastAPI / ASGI integration

The middleware captures method, path, status, duration_ms, ip, user_agent, and request_id for every request. Status >=500 is logged at ERROR, >=400 at WARN, others at INFO.

Raw HTTP (no SDK)