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

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

# Interface: LogWatchFilterOptions

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

Entry filters applied as entries arrive, before buffering.

## Extended by

- [`LogWatchBufferOptions`](LogWatchBufferOptions.md)

## Properties

### 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.

***

### 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).
