Skip to main content

Interface: LoggerTimestampFormatter

@sapphire/plugin-logger.LoggerTimestampFormatter

The formatter used for LoggerTimestampOptions. This will be run after applying the color to the formatter.

Since

1.0.0

Callable

LoggerTimestampFormatter

LoggerTimestampFormatter(timestamp): string

Parameters

NameTypeDescription
timestampstringThe output of LoggerStyle.run on Timestamp.display/Timestamp.displayUTC.

Returns

string

Since

1.0.0

Defined in

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