Logs API
The Logs API provides methods to access and query system logs and debugging information in Mastra.
Getting logsGetting logs的直接链接
Retrieve system logs with optional filtering:
const logs = await mastraClient.listLogs({
transportId: 'transport-1',
})
Getting logs for a specific runGetting logs for a specific run的直接链接
Retrieve logs for a specific execution run:
const runLogs = await mastraClient.getLogForRun({
runId: 'run-1',
transportId: 'transport-1',
})