From 846ea19282b0d9bf979364276c0cd3bca7303dab Mon Sep 17 00:00:00 2001 From: Emily J Date: Tue, 6 Oct 2020 18:50:28 +1100 Subject: [PATCH] formatting changes --- bot/util/logger.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bot/util/logger.js b/bot/util/logger.js index 88afa39..93ad88c 100644 --- a/bot/util/logger.js +++ b/bot/util/logger.js @@ -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 = { @@ -16,12 +16,12 @@ const customLevels = { }, colours: { - debug: "magenta", - cmd: "white", - info: "cyan", - ready: "green", - warn: "yellow", - error: "red" + debug: "black magentaBG", + cmd: "black whiteBG", + info: "black cyanBG", + ready: "black greenBG", + warn: "black yellowBG", + error: "black redBG" } };