Home / Guides / Self-Hosting & Infra
Python Logging Pitfalls: basicConfig Doing Nothing, Duplicate Lines, Lazy Formatting and JSON Logs
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.
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 →