Skip to content

LogOptions

LogOptions<A> = object

Defined in: Composition/tap.ts:210

Configuration options for tap.log.

A

readonly optional formatter?: (value) => string

Defined in: Composition/tap.ts:223

A custom formatter function to convert the piped value to a string. Defaults to JSON.stringify for objects and String(value) for primitives.

A

string


readonly optional label?: string

Defined in: Composition/tap.ts:214

An optional label prefix for the log output (e.g., [label]: value).


readonly optional logger?: (message) => void

Defined in: Composition/tap.ts:218

The logging destination function. Defaults to console.log.

string

void