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.

Defined in

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


condition?

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

Condition to display the given field.

Defined in

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


format()?

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

Formatting/coloring of the field.

Parameters

• ...args: Args

Returns

LoggerFormat

Defined in

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


args?

optional args: Args

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

Defined in

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