---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / watchMrtLogs

# Function: watchMrtLogs()

> **watchMrtLogs**(`options`, `auth`): `Promise`\<[`MrtLogWatch`](../interfaces/MrtLogWatch.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/watch-logs.ts:62](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/operations/mrt/watch-logs.ts#L62)

Start a buffered MRT log watch. See watchLogs for buffering and filters.

## Parameters

### options

[`WatchMrtLogsOptions`](../interfaces/WatchMrtLogsOptions.md)

### auth

[`AuthStrategy`](../../../auth/interfaces/AuthStrategy.md)

## Returns

`Promise`\<[`MrtLogWatch`](../interfaces/MrtLogWatch.md)\>

## Example

```typescript
const watch = await watchMrtLogs({projectSlug: 'my-project', environmentSlug: 'production', level: ['ERROR']}, auth);
const {entries, stopped} = await watch.poll({timeoutMs: 5000});
await watch.stop();
```
