Add ISO date to logging

master
Dessa Simpson 2020-11-28 22:09:06 -07:00
parent 88955ba707
commit 42d2a4a78c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }