Documentation Index
Fetch the complete documentation index at: https://mintlify.com/reductoai/reducto-python-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Reducto Python SDK uses the standard librarylogging module to provide visibility into SDK operations and API interactions.
Enabling Logging
You can enable logging by setting theREDUCTO_LOG environment variable.
Info Level Logging
For general logging information:Debug Level Logging
For more verbose logging, including detailed request and response information:Debug level logging is useful during development and troubleshooting, but should be used cautiously in production as it may log sensitive information.
Usage Example
Set the environment variable before running your Python application:Programmatic Configuration
You can also configure logging programmatically in your Python code using the standardlogging module:
Logging Levels
| Level | Environment Variable | Description |
|---|---|---|
| INFO | REDUCTO_LOG=info | General operational information about SDK usage |
| DEBUG | REDUCTO_LOG=debug | Detailed diagnostic information including request/response details |
Best Practices
- Use info level logging in production for monitoring and operational insights
- Use debug level logging during development and when troubleshooting issues
- Be mindful that debug logging may include sensitive information in logs
- Configure log rotation and retention policies appropriately for your environment