interface RollOptions {
    timestamp?: "unix" | "iso" | "auto";
}

Hierarchy (view full)

Properties

Properties

timestamp?: "unix" | "iso" | "auto"

For rolling log files

When

  • value passed to rolling destination is a string (path from LogOptions is a string) and
  • frequency is defined

This determines the format of the datetime inserted into the log file name:

  • unix - unix epoch timestamp in milliseconds
  • iso - Full ISO8601 datetime IE '2024-03-07T20:11:34Z'
  • auto
    • When frequency is daily only inserts date IE YYYY-MM-DD
    • Otherwise inserts full ISO8601 datetime
'auto'