Skip to content

Documentation / listr2 / LoggerFieldFn

Interface: LoggerFieldFn<Args>

Type parameters

Args extends any[] = any[]

Properties

field

field: string | (...args) => string

The value of the given field.

Source

packages/listr2/src/utils/logger/logger.interface.ts:59


condition?

optional condition: boolean | (...args) => boolean

Condition to display the given field.

Source

packages/listr2/src/utils/logger/logger.interface.ts:63


format()?

optional format: (...args) => LoggerFormat

Formatting/coloring of the field.

Parameters

• ...args: Args

Returns

LoggerFormat

Source

packages/listr2/src/utils/logger/logger.interface.ts:67


args?

optional args: Args

Args to pass to other functions whenever this field is triggered.

Source

packages/listr2/src/utils/logger/logger.interface.ts:71