---
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:111](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/logs/filter.ts#L111)

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`
