---
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:116](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/9c8c448223735b087738106fca3bc4c8e812ceb7/packages/b2c-tooling-sdk/src/operations/logs/filter.ts#L116)

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`
