# Interface LogMessageResourceOptions

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

#####
Index

### Properties

currency?
dateFormat?
error?
fractionalDigits?
locale?
message?
messageResource
numberFormat?
timeFormat?
timeZone?

##
Properties

### `Optional` currency

currency?: string

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

Inherited from BaseLogOptions.currency

### `Optional` dateFormat

dateFormat?: string

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

Inherited from BaseLogOptions.dateFormat

### `Optional` error

error?: Error

The error related to the log.

Inherited from BaseLogOptions.error

### `Optional` fractionalDigits

fractionalDigits?: number

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

Inherited from BaseLogOptions.fractionalDigits

### `Optional` locale

locale?: string

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

Inherited from BaseLogOptions.locale

### `Optional` message

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

messageResource: string

A language key corresponding to the message to log.

### `Optional` numberFormat

numberFormat?: string

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

Inherited from BaseLogOptions.numberFormat

### `Optional` timeFormat

timeFormat?: string

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

Inherited from BaseLogOptions.timeFormat

### `Optional` timeZone

timeZone?: string

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

Inherited from BaseLogOptions.timeZone