ログ API
ログ API は、Mastra のシステムログとデバッグ情報にアクセスして照会するためのメソッドを提供します。
ログの取得
オプションのフィルタリングを使用してシステムログを取得します:
const logs = await mastraClient.getLogs({
transportId: "transport-1",
});
特定の実行のログを取得する
特定の実行ランのログを取得します:
const runLogs = await mastraClient.getLogForRun({
runId: "run-1",
transportId: "transport-1",
});