LogOptions
LogOptions<
A> =object
Defined in: Composition/tap.ts:45
Configuration options for tap.log.
Type Parameters
Section titled “Type Parameters”A
Properties
Section titled “Properties”formatter?
Section titled “formatter?”
readonlyoptionalformatter?: (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.
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”string
label?
Section titled “label?”
readonlyoptionallabel?:string
Defined in: Composition/tap.ts:49
An optional label prefix for the log output (e.g., [label]: value).
logger?
Section titled “logger?”
readonlyoptionallogger?: (message) =>void
Defined in: Composition/tap.ts:53
The logging destination function. Defaults to console.log.
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”void