> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ja/llms.txt # Mastra.listLogsByRunId() `.listLogsByRunId()` メソッドは、特定の Run ID と Transport ID に対応するログを取得します。このメソッドを使用するには、`listLogsByRunId` 操作をサポートする Logger が設定されている必要があります。 ## 使用例 ```typescript mastra.listLogsByRunId({ runId: '123', transportId: '456' }) ``` ## パラメーター **runId** (`string`): ログを取得する Run ID。 **transportId** (`string`): ログを取得する Transport ID。 **fromDate** (`Date`): ログを絞り込む任意の開始日。例: new Date('2024-01-01')。 **toDate** (`Date`): ログを絞り込む任意の終了日。例: new Date('2024-01-31')。 **logLevel** (`LogLevel`): 絞り込みに使用する任意のログレベル。 **filters** (`Record`): ログクエリに適用する任意の追加フィルター。 **page** (`number`): ページネーションに使用する任意のページ番号。 **perPage** (`number`): ページネーションで1ページに表示する任意のログ件数。 ## 戻り値 **logs** (`Promise`): 指定した Run ID と Transport ID のログに解決される Promise。 ## 関連項目 - [ログの概要](https://mastra.zisheng.pro/ja/docs/observability/logging) - [Logger リファレンス](https://mastra.zisheng.pro/ja/reference/logging/pino-logger)