Class: LoggerTimestamp
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:8
Logger utility that formats a timestamp.
Since
1.0.0
Constructors
new LoggerTimestamp()
new LoggerTimestamp(
options
:LoggerTimestampOptions
):LoggerTimestamp
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:33
Parameters
Parameter | Type |
---|---|
options | LoggerTimestampOptions |
Returns
Properties
color
color:
null
|LoggerStyle
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:25
The logger style to apply the color to the timestamp.
Since
1.0.0
formatter
formatter:
LoggerTimestampFormatter
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:31
The final formatter.
Since
1.0.0
timestamp
timestamp:
Timestamp
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:13
The timestamp used to format the current date.
Since
1.0.0
utc
utc:
boolean
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:19
Whether or not the logger will show a timestamp in UTC.
Since
1.0.0
Methods
run()
run():
string
Defined in: projects/plugins/packages/logger/src/lib/LoggerTimestamp.ts:44
Formats the current time.
Returns
string
Since
1.0.0