Skip to main content

Interface: LoggerTimestampOptions

logger/src.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