# Logs API
[EN] Source: https://mastra.ai/reference/client-js/logs

The Logs API provides methods to access and query system logs and debugging information in Mastra.

## Getting Logs

Retrieve system logs with optional filtering:

```typescript
const logs = await mastraClient.listLogs({
  transportId: "transport-1",
});
```

## Getting Logs for a Specific Run

Retrieve logs for a specific execution run:

```typescript
const runLogs = await mastraClient.getLogForRun({
  runId: "run-1",
  transportId: "transport-1",
});
```


---
title: "Reference: Mastra Client SDK | Client SDK"
description: Learn how to interact with Mastra using the client-js SDK.
---