Python Logging Configuration
Set up professional logging with multiple handlers, formatters, and log levels.
6/11/2026
Prompt
Configure logging for my Python application: Application type: [WEB/CLI/SERVICE/LIBRARY] Environment: [DEVELOPMENT/PRODUCTION/BOTH] Output destinations: [CONSOLE/FILE/CLOUD/ALL] Requirements: 1. Logging setup with dictConfig 2. Multiple handlers (console, file, rotating) 3. Custom formatters (JSON, colored) 4. Log levels per module 5. Structured logging 6. Request ID tracking (for web apps) 7. Sensitive data masking 8. Performance metrics 9. Integration with monitoring (ELK, CloudWatch) 10. Testing log output Configuration for: - Local development (verbose, colored) - Production (JSON, structured) - Testing (captured, assertable)
Or press ⌘C to copy
Command Palette
Search for a command to run...