Skip to main content

Class: LoggerLevel

@sapphire/plugin-logger.LoggerLevel

Logger utility that stores and applies a full style into the message.

since 1.0.0

Constructors

constructor

โ€ข new LoggerLevel(options?)

Parameters

NameType
optionsLoggerLevelOptions

Defined in

projects/plugins/packages/logger/src/lib/LoggerLevel.ts:27

Properties

infix

โ€ข infix: string

The infix, added between the timestamp and the message.

since 1.0.0

Defined in

projects/plugins/packages/logger/src/lib/LoggerLevel.ts:19


message

โ€ข message: null | LoggerStyle

The style formatter for the message.

since 1.0.0

Defined in

projects/plugins/packages/logger/src/lib/LoggerLevel.ts:25


timestamp

โ€ข timestamp: null | LoggerTimestamp

The timestamp formatter.

since 1.0.0

Defined in

projects/plugins/packages/logger/src/lib/LoggerLevel.ts:13

Methods

run

โ–ธ run(content): string

Parameters

NameType
contentstring

Returns

string

Defined in

projects/plugins/packages/logger/src/lib/LoggerLevel.ts:33