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

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

# Function: matchesSearch()

> **matchesSearch**(`entry`, `search`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/operations/logs/filter.ts:121](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/logs/filter.ts#L121)

Checks if a single entry matches the search text (case-insensitive).
Used for streaming/tail scenarios where we filter one entry at a time.

## Parameters

### entry

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

### search

`string`

## Returns

`boolean`
