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

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

# Function: matchesLevel()

> **matchesLevel**(`entry`, `levels`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/operations/logs/filter.ts:106](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/9c8c448223735b087738106fca3bc4c8e812ceb7/packages/b2c-tooling-sdk/src/operations/logs/filter.ts#L106)

Checks if a single entry matches the specified log levels.
Used for streaming/tail scenarios where we filter one entry at a time.

## Parameters

### entry

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

### levels

`string`[]

## Returns

`boolean`
