Options with a generic message supported by Logger.

interface LogMessageOptions {
    currency?: string;
    dateFormat?: string;
    error?: Error;
    fractionalDigits?: number;
    locale?: string;
    message: string;
    numberFormat?: string;
    timeFormat?: string;
    timeZone?: string;
}

Hierarchy

  • BaseLogOptions
    • LogMessageOptions

Properties

currency?: string

The default unit of currency to use when formatting currency. See utilities/format/number!NumberSettings.currency.

dateFormat?: string

The default format to use when formatting dates. See utilities/format/date!DateFormatter.format.

error?: Error

The error related to the log.

fractionalDigits?: number

The default number of digits to show after the decimal point when formatting numbers. See utilities/format/number!NumberSettings.fractionalDigits.

locale?: string

The locale to use when formatting numbers and dates. If not specified, the current locale is used (see locale module).

message: string

A string representing the log message. The format is the same as the syntax for utilities/format/string!StringFormatter.format, allowing for positional arguments.

numberFormat?: string

The default format to use when formatting numbers. See utilities/format/number!NumberFormatter.format.

timeFormat?: string

The default format to use when formatting times. See utilities/format/time!TimeFormatter.format.

timeZone?: string

The time zone of a date being formatted. See utilities/format/date!DateFormatter.timeZone.