Interface TimestampZLogSpec

A specification of how to add timestamp to log message.

Hierarchy

  • TimestampZLogSpec

Properties

Methods

Properties

to?: string | symbol

A key of message details property to record timestamp to.

Default

"timestamp".

Methods

  • Gets timestamp for the message.

    Parameters

    • message: ZLogMessage

      The message to generate timestamp for.

    Returns string | number | Date

    Timestamp value. Could be either Date, number (i.e. epoch milliseconds), or string.

    Default

    Date.now()

Generated using TypeDoc