> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-TW/llms.txt # Logs API Logs API 提供用於存取和查詢 Mastra 中系統記錄與偵錯資訊的方法。 ## 取得記錄 取得系統記錄,並選擇進行篩選: ```typescript const logs = await mastraClient.listLogs({ transportId: 'transport-1', }) ``` ## 取得特定 run 的記錄 取得特定執行 run 的記錄: ```typescript const runLogs = await mastraClient.getLogForRun({ runId: 'run-1', transportId: 'transport-1', }) ```