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

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

# Interface: MrtLogWatch

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

A live MRT log stream that buffers entries until they are polled. The stream
can end on its own (idle timeout, expired credentials, server restart); the
next poll reports `stopped: true` and the connection error, and buffered
entries stay readable.

## Methods

### info()

> **info**(): [`MrtLogWatchInfo`](MrtLogWatchInfo.md)

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

#### Returns

[`MrtLogWatchInfo`](MrtLogWatchInfo.md)

***

### poll()

> **poll**(`options?`): `Promise`\<[`MrtLogWatchPoll`](../type-aliases/MrtLogWatchPoll.md)\>

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

#### Parameters

##### options?

[`LogWatchPollOptions`](../../logs/interfaces/LogWatchPollOptions.md)

#### Returns

`Promise`\<[`MrtLogWatchPoll`](../type-aliases/MrtLogWatchPoll.md)\>

***

### stop()

> **stop**(): `Promise`\<`void`\>

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

Close the stream. Unread entries stay readable through `poll()`. Safe to repeat.

#### Returns

`Promise`\<`void`\>
