Structlog Config
Opinionated defaults for structlog. JSON in production, one formatter for every logger, and pytest output you can hand to an LLM.
JSON in production
orjson output with sorted keys, ISO timestamps, and structured exceptions.
One formatter
Stdlib, warnings, and plugin loggers share the same structlog pipeline.
Pytest capture
Failed tests write stdout, stderr, and tracebacks for later inspection.
Scoped teeing
Capture the logs from one call or request without a special logger.