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

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

# Interface: LogWatchBufferOptions

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

Entry filters applied as entries arrive, before buffering.

## Extends

- [`LogWatchFilterOptions`](LogWatchFilterOptions.md)

## Extended by

- [`WatchLogsOptions`](WatchLogsOptions.md)
- [`WatchMrtLogsOptions`](../../mrt/interfaces/WatchMrtLogsOptions.md)

## Properties

### bufferBytesCap?

> `optional` **bufferBytesCap**: `number`

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

Maximum buffered bytes. Default: 50 MiB.

***

### bufferCap?

> `optional` **bufferCap**: `number`

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

Maximum buffered entries. Default: 5000.

***

### level?

> `optional` **level**: `string`[]

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

Keep only these levels (case-insensitive). Entries without a level are dropped when set.

#### Inherited from

[`LogWatchFilterOptions`](LogWatchFilterOptions.md).[`level`](LogWatchFilterOptions.md#level)

***

### search?

> `optional` **search**: `string`

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

Keep only entries whose message or raw line contains this text (case-insensitive).

#### Inherited from

[`LogWatchFilterOptions`](LogWatchFilterOptions.md).[`search`](LogWatchFilterOptions.md#search)
