logging module to provide visibility into API requests and responses.
Enabling logging
You can enable logging by setting theDEDALUS_LOG environment variable.
Info level logging
SetDEDALUS_LOG=info to see basic request and response information:
Debug level logging
For more verbose logging, setDEDALUS_LOG=debug:
- Detailed HTTP request information (method, URL, headers)
- Response status codes and timing
- Retry attempts and backoff delays
- Internal SDK operations
Log format
Logs are formatted as:Programmatic configuration
You can also configure logging programmatically in your Python code:Filtering logs
You can filter logs to only see specific components:Use cases
Logging is helpful for:- Debugging API issues: See exactly what requests are being sent
- Performance monitoring: Track request timing and retry behavior
- Security auditing: Log all API interactions
- Development: Understand SDK behavior during development