Write a Comprehensive Logging Configuration
Generate professional logging configurations for any programming language. Debug faster with proper log levels, formatting, and best practices.
Prompt Template
Variables to Customize
[PROGRAMMING_LANGUAGE] The programming language for the application
Example: Python
[APPLICATION_TYPE] Type of application being developed
Example: REST API microservice
[ENVIRONMENT] Target deployment environment
Example: production
[LOG_VOLUME] Expected volume of log messages
Example: high - 10,000+ requests per minute
[COMPONENTS_TO_LOG] Specific application components that need logging
Example: database queries, API requests, authentication, business logic errors
[LOGGING_FRAMEWORK] Preferred logging framework or library
Example: Python logging with structlog
[SPECIAL_REQUIREMENTS] Any special logging requirements or constraints
Example: GDPR compliance, ELK stack integration, real-time monitoring
Example Output
Pro Tips for Best Results
- Always use structured logging (JSON) in production environments for easier parsing and analysis
- Set different log levels for different environments - DEBUG for development, INFO+ for production
- Include contextual information like user IDs, request IDs, and timestamps in your log messages
- Implement log rotation to prevent disk space issues and set appropriate retention policies
- Test your logging configuration thoroughly, including error scenarios and high-load situations
Tags
Want 500+ Expert Prompts?
Get the Premium Prompt Pack — organized, tested, and ready to use.
Get it for $29Related Prompts You Might Like
Create a Comprehensive Monitoring Dashboard
You are an expert DevOps engineer specializing in observability and monitoring systems. Create a comprehensive monitorin...
Debug Async JavaScript Issues
You are an expert JavaScript debugger specializing in asynchronous code issues. I need help debugging async JavaScript p...
Debug CORS Errors in Web Applications
I'm experiencing a CORS (Cross-Origin Resource Sharing) error in my web application. Please help me debug and resolve th...
Write a Professional README File
Create a comprehensive README file for a [PROJECT_TYPE] project called "[PROJECT_NAME]". The project is built using [TEC...
Implement Search Functionality
I need to implement search functionality for my [APPLICATION_TYPE] application. Here are the key requirements: **Techni...
Convert JavaScript to TypeScript
You are an expert TypeScript developer tasked with converting JavaScript code to TypeScript. Please convert the followin...