Skip to main content

Interface: LoggerTimestampOptions

@sapphire/plugin-logger.LoggerTimestampOptions

The options for LoggerTimestamp.

Since

1.0.0

Properties

color

Optional color: null | LoggerStyleResolvable

The color to use.

Since

1.0.0

Default

colorette.reset

Defined in

projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:80


formatter

Optional formatter: LoggerTimestampFormatter

The formatter. See LoggerTimestampFormatter for more information.

Since

1.0.0

Default

(value) => ${value} -

Defined in

projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:87


pattern

Optional pattern: string

The Timestamp pattern.

Since

1.0.0

Default

'YYYY-MM-DD HH:mm:ss'

Example

'YYYY-MM-DD HH:mm:ss'
// 2020-12-23 22:01:10

Defined in

projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:66


utc

Optional utc: boolean

Whether or not the date should be UTC.

Since

1.0.0

Default

false

Defined in

projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:73