Skip to main content

Interface: 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