litestar-logging
Installation
SKILL.md
Logging
Execution Workflow
- Choose the logging backend first: stdlib logging, picologging, Structlog, or a custom config subclass.
- Configure logging once at app setup with
logging_configor the Structlog plugin. - Use Litestar's non-blocking
queue_listenerhandler unless a concrete reason requires otherwise. - Decide when exceptions should be logged and which stack traces should be suppressed.
- Standardize request and app logger usage so fields, levels, and redaction rules stay consistent.
- Validate that logs remain actionable without leaking sensitive data.