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

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

# Interface: ListLogsOptions

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

Options for listing log files.

## Properties

### prefixes?

> `optional` **prefixes**: `string`[]

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

Filter by log prefixes (e.g., ["error", "customerror"]).

A filter containing a "/" (e.g. "internal/server") is treated as a path
filter: it recurses into that subdirectory of `Logs/` and matches files by
their path relative to `Logs/`. Filters without a "/" match the top-level
log-category prefix. If not specified, returns all top-level log files.

***

### sortBy?

> `optional` **sortBy**: `"date"` \| `"name"` \| `"size"`

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

Sort field: "name", "date", or "size".

#### Default

```ts
"date"
```

***

### sortOrder?

> `optional` **sortOrder**: `"asc"` \| `"desc"`

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

Sort order.

#### Default

```ts
"desc"
```
