> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.toloka.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# client.trainings.getRunLogs()

> Read training run logs.

Return up to 100 log entries. Pass `nextCursor` as `cursor` to continue reading; `complete` indicates whether the log is finished.

## Signature

Method signature on `client.trainings`:

```ts theme={null}
getRunLogs(args: {
  trainingRunId: string;
  cursor?: string;
  limit?: number;
}): Promise<TrainingRunLogs>;
```

## Parameters

**trainingRunId** `string` *required*

ID of the training run, with prefix `trn.`.

**cursor** `string`

Cursor from the previous log response; omit to start at the beginning.

**limit** `number` (default: 100)

Maximum number of log entries to return, from 1 to 100; defaults to 100.

## Returns

`Promise<TrainingRunLogs>`

A page of training run logs with a cursor for the next page.

**entries** `object[]` *required*

Log entries in this page, in stored order.

**Fields**

**timestamp** `string` *required*

Time the log entry was recorded, as an ISO 8601 timestamp.

**level** `"trace" | "debug" | "info" | "warn" | "error"` *required*

Log severity, from `trace` and `debug` through `info`, `warn`, and `error`.

**message** `string` *required*

Text of the log entry.

**nextCursor** `string | null` *required*

Cursor for the next log page, or null when no further page is currently available.

**complete** `boolean` *required*

Whether collection of the run logs has finished.

**truncated** `boolean` *required*

Whether logs were omitted because a log size or count limit was reached.

## Errors

HTTP errors throw [`PotatoApiError`](https://docs.platform.toloka.ai/docs/sdk/errors). The endpoint documents these error responses:

| Status | Description |
| - | - |
| 404 | Training Run not found |
| 429 | Rate limit exceeded |

HTTP endpoint: [`GET /training-runs/{trainingRunId}/logs`](https://docs.platform.toloka.ai/docs/api-reference/trainings/get-training-run-logs).

```ts getRunLogs() theme={null}
import { createClient } from "@toloka-platform/sdk";

const client = createClient({
  baseUrl: "https://platform.toloka.ai",
  apiKey: process.env.TOLOKA_API_KEY!,
});

const logs = await client.trainings.getRunLogs({
  trainingRunId: "trn.019a0000-0000-7000-8000-000000000001"
});
console.log(logs);
```

```json getRunLogs() theme={null}
{
  "entries": [
    {
      "timestamp": "2026-01-01T00:00:00Z",
      "level": "trace",
      "message": "<string>"
    }
  ],
  "nextCursor": null,
  "complete": false,
  "truncated": false
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.