---
url: /reference/api/logger/Function.formatLogLabel.md
---
# Function: formatLogLabel()

```ts twoslash
// @include: imports
function formatLogLabel(label, style?): string;
```

Defined in: [packages/logger/src/index.ts:145](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/logger/src/index.ts#L145)

## Parameters

`label`

`string`

`undefined`

`style?`

(`text`) => `string`

`identity`

## Returns

`string`
