Function detailZLogField

  • Creates a log field for extracted message detail.

    Writes the value with ZLogWriter.writeValue method. Writes nothing if the target detail is undefined.

    Parameters

    • Rest ...path: (string | symbol)[]

      A path to details property to extract. Empty path means extracting of all details.

    Returns ZLogField

    Log detail field.

  • Creates a log field for extracted message detail in specific format.

    Writes the value with ZLogWriter.writeValue method. Writes nothing if the target detail is undefined.

    Type Parameters

    • T

    Parameters

    • Rest ...pathAndWrite: [...path: (string | symbol)[], write: ((this, writer, value) => void)]

      A path to details property to extract and value writer function. Empty path means extracting of all details.

    Returns ZLogField

    Log detail field.

Generated using TypeDoc