formatting changes

This commit is contained in:
Emily 2020-10-08 12:55:47 +11:00
parent 3cb9c1373d
commit 36f97355a4
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ const { createLogger, format, transports, addColors } = require("winston");
const { combine, timestamp, printf, colorize } = format;
const fmt = printf(({ level, message, timestamp }) => {
return timestamp + ' ' + level + ' ' + message;
return '[' + timestamp + '] ' + level + ' ' + message;
});
const customLevels = {