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
Name | Type |
---|---|
options | LoggerLevelOptions |
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
Name | Type |
---|---|
content | string |
Returns
string