Class Loggable<T>

Allow adding of a simple key/value pair to a log where value can be any value.

Please note that internally this would converted to JSON using JSON.stringify. Therefore, any content that cannot be parsed will result in '[object Object]' output.

It's preferred to use KV instead of this method as KV enforces the use of TLoggableValue

Type Parameters

  • T

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

_key: string
_value: T | T[]

Accessors

  • get key(): string
  • Returns string

  • get value(): T | T[]
  • Returns T | T[]

Methods

  • Factory method for KV

    Returns

    Type Parameters

    • T

    Parameters

    • key: string
    • value: T

    Returns Loggable<T>

Generated using TypeDoc