Add ISO date to logging
parent
88955ba707
commit
42d2a4a78c
|
@ -10,5 +10,5 @@ export enum LogLevel {
|
||||||
|
|
||||||
export async function log(logLevel: LogLevel, logMessage: any) {
|
export async function log(logLevel: LogLevel, logMessage: any) {
|
||||||
if (config.logLevel >= logLevel)
|
if (config.logLevel >= logLevel)
|
||||||
console.log(LogLevel[logLevel].padStart(7) + ' | ' + logMessage)
|
console.log(new Date().toISOString() + LogLevel[logLevel].padStart(7) + ' | ' + logMessage)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue