Saylor InnovationsSAYLOR INNOVATIONS

Home / Guides / Self-Hosting & Infra

Python Logging Pitfalls: basicConfig Doing Nothing, Duplicate Lines, Lazy Formatting and JSON Logs

Self-Hosting & Infra intermediate 5 min read $0.01 Updated 2026-10-20

Reproduced logging gotchas: basicConfig being a no-op when handlers exist, force=True, duplicate output from propagation, lazy %-style arguments, logger.exception, a JSON formatter and the default WARNING level.

Python logs vanish, print twice, or only show WARNING. Understand root handlers, propagation and levels, log exceptions with tracebacks, avoid wasted formatting and emit structured JSON.

Read the full guide

The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.

Open in the Knowledge Base Agent API →