Skip to content

Verbose Renderer

VerboseRenderer is the default non-TTY renderer and works mostly like a logger.

demo

Renderer Options

Details

Documentation / listr2 / ListrVerboseRendererOptions

Interface: ListrVerboseRendererOptions

Inject your custom style map consisting of icons and coloring for the ListrLogger.

See

https://listr2.kilic.dev/renderer/logger.html

Extends

Properties

timer?

optional timer: PresetTimer

Show duration for the tasks.

Inherited from

RendererPresetTimer.timer

Defined in

packages/listr2/src/presets/timer/preset.interface.ts:9


timestamp?

optional timestamp: PresetTimestamp

Show timestamp for each event that has been logged.

Inherited from

RendererPresetTimestamp.timestamp

Defined in

packages/listr2/src/presets/timestamp/preset.interface.ts:9


logTitleChange?

optional logTitleChange: boolean

Log the title changes of the task.

Default

false

Defined in

packages/listr2/src/renderer/verbose/renderer.interface.ts:14


pausedTimer?

optional pausedTimer: PresetTimer

Show duration for the pauses.

Default Value

PRESET_TIMER

Defined in

packages/listr2/src/renderer/verbose/renderer.interface.ts:20


color?

optional color: Partial<Record<ListrLogLevels, LoggerFormat>>

Coloring of the levels.

See

https://listr2.kilic.dev/renderer/logger.html#style

Inherited from

ListrLoggerStyleMap.color

Defined in

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


icon?

optional icon: Partial<Record<ListrLogLevels, string>>

Icons of the levels.

See

https://listr2.kilic.dev/renderer/logger.html#style

Inherited from

ListrLoggerStyleMap.icon

Defined in

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


logger?

optional logger: ListrLogger<ListrLogLevels>

Inject your custom implementation of the ListrLogger.

See

https://listr2.kilic.dev/renderer/logger.html

Inherited from

RendererLoggerOptions.logger

Defined in

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

Renderer Task Options

Details

Documentation / listr2 / ListrVerboseRendererTaskOptions

Interface: ListrVerboseRendererTaskOptions

Extends

Properties

timer?

optional timer: PresetTimer

Show duration for the tasks.

Inherited from

RendererPresetTimer.timer

Defined in

packages/listr2/src/presets/timer/preset.interface.ts:9