wheels deploy logs
View and manage deployment logs for troubleshooting and monitoring.
Synopsis
Description
The wheels deploy logs
command provides access to deployment logs, allowing you to view, search, and export logs from past and current deployments. This is essential for troubleshooting deployment issues, auditing deployment history, and monitoring deployment progress.
Options
--deployment-id, -d
- Specific deployment ID to view logs for--environment, -e
- Filter logs by environment (default: all)--tail, -f
- Follow log output in real-time--lines, -n
- Number of lines to display (default: 100)--since
- Show logs since timestamp (e.g., "2023-01-01", "1h", "30m")--until
- Show logs until timestamp--grep, -g
- Filter logs by pattern (regex supported)--level
- Filter by log level (debug, info, warn, error)--format
- Output format (text, json, csv) (default: text)--output, -o
- Export logs to file--no-color
- Disable colored output
Examples
View recent deployment logs
Follow current deployment logs
View specific deployment logs
Filter by time range
Search for errors
Export logs to file
View logs in JSON format
Log Levels
Logs are categorized by severity:
DEBUG: Detailed diagnostic information
INFO: General informational messages
WARN: Warning messages for potential issues
ERROR: Error messages for failures
FATAL: Critical errors causing deployment failure
Log Structure
Each log entry contains:
Timestamp
Log level
Deployment stage
Component/service
Message
Additional metadata
Example log entry:
Use Cases
Real-time monitoring
Troubleshooting failures
Audit trail
Performance analysis
Advanced Filtering
Complex grep patterns
Multiple filters
Log aggregation
Log Retention
Logs are retained based on environment settings
Default retention periods:
Production: 90 days
Staging: 30 days
Development: 7 days
Archived logs available through backup systems
Best Practices
Use appropriate filters: Narrow down logs to relevant entries
Export important logs: Save logs for failed deployments
Monitor in real-time: Use --tail for active deployments
Regular log review: Periodically review logs for patterns
Set up alerts: Configure alerts for error patterns
Maintain log hygiene: Ensure logs are meaningful and not excessive
Integration
Log viewing integrates with:
Monitoring systems (Datadog, New Relic, etc.)
Log aggregation services (ELK stack, Splunk)
Alerting systems for error notifications
CI/CD pipelines for deployment history
Troubleshooting
No logs appearing
Log export failing
See Also
Last updated
Was this helpful?