Interface TimestampZLogFieldFormat

Log message timestamp format.

Hierarchy

  • TimestampZLogFieldFormat

Properties

Properties

format?: DateTimeFormat | ((this, timestamp) => string)

Timestamp value format.

Either formatting function accepting timestamp in epoch milliseconds and returning its string representation, or an Intl.DateTimeFormat instance.

By default, formats as ISO 8601 string.

Type declaration

    • (this, timestamp): string
    • Parameters

      • this: void
      • timestamp: number

      Returns string

key?: string

A key of log message details property containing timestamp value.

Timestamp value is expected to be either a Date, a number (i.e. epoch milliseconds), or preformatted string. In the latter case no further formatting would be applied.

Generated using TypeDoc