Overview
TheLogLevel enum controls the verbosity of SDK logging, particularly for HTTP requests and responses. This is useful for debugging integration issues during development.
Definition
Values
VERBOSE
Most detailed logging level. Includes complete HTTP information. Includes:- HTTP request and response lines
- Headers
- Request and response bodies
- Detailed debugging of API interactions
- Inspecting exact request/response payloads
- Troubleshooting integration issues
DEBUG
Moderate logging level. Excludes request/response bodies. Includes:- HTTP request and response lines
- Headers
- General debugging without exposing full payloads
- Monitoring API endpoints being called
- Checking request headers
INFO
Basic logging level. Shows only request/response lines. Includes:- HTTP request and response lines
- Basic monitoring of API calls
- Minimal logging overhead
- Production environments with limited logging
WARN
Logs warning messages only. Use for:- Highlighting potential issues
- Production environments
ERROR
Logs error messages only. Use for:- Capturing failures and exceptions
- Production monitoring
- Minimal logging output
ASSERT
Logs assertion failures. Use for:- Critical failures only
- Minimal logging
Usage Example
Recommendations
Development
Development
Use
VERBOSE or DEBUG to see detailed HTTP traffic and debug integration issues.Testing/QA
Testing/QA
Use
INFO to monitor API calls without exposing full payloads.Production
Production
Use
ERROR or WARN to minimize logging and avoid exposing sensitive data.See Also
- Builder - Configure SDK clients
- PayMayaEnvironment - Environment configuration