Home Reference Source Test

Typedef

Static Public Summary
public

Options for Log.

public

Log~streamFn(level: number): Stream: Function

Function that returns a Stream.

Static Public

public Log~options: Object source

Options for Log.

Properties:

NameTypeAttributeDescription
levels string[]

Log levels.

colors function[]

Color function for each level.

inverse boolean[]

Whether to inverse color for each level.

labels string[]

Label of each level.

separator string

Separator between time and label, and between header and body

stream Stream | Log~streamFn

Stream or function that returns a Stream.

displayTime boolean

Whether to display time.

displayTimeFormat string

Format to display time in. See [dateformat].

level string

All log calls below this level will be ignored.

public Log~streamFn(level: number): Stream: Function source

Function that returns a Stream.

Return:

Stream

A Stream