Class: Logger

Logger

Log frame.time, frame.data, frame.metadata and/or streamAttributes of any node in the console.

This sink can handle any type if input (signal, vector, scalar)

Constructor

new Logger(options)

Parameters:
Name Type Description
options Object

Override parameters default values.

Properties
Name Type Attributes Default Description
time Boolean <optional>
false

Log incomming frame.time if true.

data Boolean <optional>
false

Log incomming frame.data if true.

metadata Boolean <optional>
false

Log incomming frame.metadata if true.

streamParams Boolean <optional>
false

Log streamParams of the previous node when graph is started.

frameIndex Boolean <optional>
false

Log index of the incomming frame.

Source:
Example
import * as lfo from 'waves-lfo/common';

const logger = new lfo.sink.Logger({ data: true });
whateverOperator.connect(logger);