# Interface LogMessageOptions

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

#####
Index

### Properties

currency?
dateFormat?
error?
fractionalDigits?
locale?
message
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

### message

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.

### `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