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