GET /resources/wrappers//logs
Retrieve log entries from a wrapper’s execution. This is a universal endpoint that reads log files generated by the wrapper during its operation.Authentication
This endpoint requires authentication. Include your API key in the request headers.Path Parameters
The unique identifier of the wrapper to get logs for
Query Parameters
Maximum number of log lines to return. The most recent lines are returned.
Response
The wrapper ID whose logs were retrieved
Array of log line strings. Lines are returned in chronological order (oldest first).
Total number of log lines returned
Example Request
cURL
Example Response
Example Response (Wrapper Not Found)
Example Response (File System Error)
Error Responses
500 Internal Server Error
Failed to read log files. Common causes:
- Log file not found (wrapper may not have started yet)
- Permission denied reading log files
- File system I/O error
Log Format
Log entries typically follow this format:- Date/Time: Timestamp in UTC
- LEVEL: Log level (INFO, WARNING, ERROR, DEBUG)
- Message: Human-readable log message
Common Log Messages
Startup:- “Wrapper started”
- “Connecting to data source”
- “Authentication successful”
- “Fetching historical data from [date]”
- “Retrieved [N] data points”
- “Polling for new data”
- “No new data available”
- “Sending data to resource [resource_id]”
- “Successfully sent [N] data points”
- “Updated high water mark”
- “Transitioning to continuous phase”
- “Entering polling mode”
- “Connection error: [details]”
- “Authentication failed”
- “Failed to send data: [details]“
Use Cases
- Debug wrapper execution issues
- Monitor data collection progress
- Investigate connection errors
- Track phase transitions (historical to continuous)
- Verify data transmission