Options that support a language resource message supported by Logger.

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

Hierarchy

  • BaseLogOptions
    • LogMessageResourceOptions

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

Fallback message to use if the message resource lookup fails.

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

messageResource: string

A language key corresponding to the message to log.

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.