Skip to main content

Interface: LoggerTimestampOptions

Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:55

The options for LoggerTimestamp.

Since

1.0.0

Properties

color?

optional color: null | LoggerStyleResolvable

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

The color to use.

Since

1.0.0

Default

colorette.reset

formatter?

optional formatter: LoggerTimestampFormatter

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

The formatter. See LoggerTimestampFormatter for more information.

Since

1.0.0

Default

(value) => ${value} -


pattern?

optional pattern: string

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

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

utc?

optional utc: boolean

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

Whether or not the date should be UTC.

Since

1.0.0

Default

false