Skip to content

LogOptions

LogOptions<A> = object

Defined in: Composition/tap.ts:45

Configuration options for tap.log.

A

readonly optional formatter?: (value) => string

Defined in: Composition/tap.ts:58

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:49

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


readonly optional logger?: (message) => void

Defined in: Composition/tap.ts:53

The logging destination function. Defaults to console.log.

string

void