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 {@link 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