plugins/litestar/skills/litestar-logging/SKILL.md
Configure Litestar logging with `LoggingConfig`, `queue_listener`, exception logging policy, selective stack-trace suppression, standard logging, picologging, Structlog, and custom logging config subclasses. Use when establishing or refactoring application logging behavior, request-level logs, or production-safe error logging in Litestar. Do not use for metrics/tracing instrumentation or exception-response contract design.
npx skillsauth add alti3/litestar-skills litestar-loggingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
logging_config or the Structlog plugin.queue_listener handler unless a concrete reason requires otherwise.queue_listener handler for async applications.disable_stack_trace for expected exception types or status codes that should not spam traces.LoggingConfig for standard logging or picologging-based setups.logging_module="picologging" when picologging is the desired backend.StructlogPlugin when structured logging with Structlog is the project standard.log_exceptions="always" when production incidents require exception logs even outside debug mode.disable_stack_trace for common expected errors such as 404 or domain-level validation problems.BaseLoggingConfig only when the built-in configs cannot express the needed behavior.Read only the sections you need:
request.logger for request-scoped logs and one shared app logger for app-level events.queue_listener would suffice.log_exceptions and disable_stack_trace match the incident policy.litestar-metrics for quantitative observability and scrape/export concerns.litestar-exception-handling for client-facing error contracts separate from logging behavior.litestar-debugging for incident-driven troubleshooting workflows.litestar-security when logging policy intersects with secrets, auth context, or redaction requirements.development
Build Litestar WebSocket endpoints with low-level websocket handlers, websocket listeners, websocket streams, dependency injection, custom websocket classes, transport-mode control, and graceful connection lifecycle handling. Use when implementing bidirectional real-time communication, reactive websocket message handling, or proactive server push over WebSockets. Do not use for server-side pub/sub fanout that is better expressed with channels alone.
tools
Test Litestar applications with TestClient, AsyncTestClient, create_test_client, websocket test helpers, dependency overrides, mocked dependencies, lifecycle-aware fixtures, and deterministic success and failure assertions. Use when adding or fixing Litestar test coverage, including exception contracts, override precedence, websocket behavior, event-bus side effects, or live-server-only response patterns. Do not use as a substitute for production observability or runtime debugging strategy.
development
Configure Litestar templating with `TemplateConfig`, Jinja/Mako/MiniJinja engines, file-or-string `Template` responses, request and CSRF-aware context, template callables, and custom engine integration. Use when implementing or fixing server-rendered HTML in Litestar. Do not use for static asset serving or pure JSON API endpoints.
development
Configure Litestar stores and the store registry for caching, server-side sessions, rate limiting, and other key-value state with explicit backend selection, bytes-safe data handling, TTL and renewal policy, namespacing, registry wiring, and lifecycle cleanup. Use when a Litestar app depends on `MemoryStore`, `FileStore`, `RedisStore`, `ValkeyStore`, or `StoreRegistry`. Do not use for relational persistence, domain repositories, or response-caching policy details that belong in database or caching-focused skills.