Interface Handlers<TTarget>

Custom loggable value processing handlers.

Type Parameters

Hierarchy

  • Handlers

Methods

  • Handles Loggable value.

    The handler execution results treated similarly to Loggable.toLog.

    By default, calls Loggable.toLog and returns its value.

    Parameters

    • this: void
    • target: TTarget & DueLog

      Target (mutable) message to process.

    • value: Loggable<Target>

      The loggable value to process.

    Returns unknown

    Either new loggable value representation, or nothing or this value itself to not replace its loggable representation.

  • Handles raw (i.e. non-Loggable) value.

    The handler execution results treated similarly to Loggable.toLog.

    Does nothing by default.

    Parameters

    • this: void
    • target: TTarget & DueLog

      Target (mutable) message to process.

    • value: unknown

      The raw value to process.

    Returns unknown

    Either new loggable value representation, or nothing or this value itself to not replace its loggable representation.

Generated using TypeDoc