From 9b9a67d8dff85d35717f24dd1a49f32f702d9ff7 Mon Sep 17 00:00:00 2001 From: MrFry Date: Mon, 7 Oct 2019 17:26:43 +0200 Subject: [PATCH] Added colors --- utils/logger.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/logger.js b/utils/logger.js index cf6e67a..76e6b91 100644 --- a/utils/logger.js +++ b/utils/logger.js @@ -32,6 +32,14 @@ const locLogFile = './stats/logs' const logFile = '/nlogs/nlogs' const allLogFile = '/nlogs/log' +const colors = [ + 'red', + 'green', + 'yellow', + 'blue', + 'cyan' +] + function GetDateString () { const m = new Date() return m.getFullYear() + '/' + @@ -83,14 +91,6 @@ function LogReq (req, toFile, sc) { } } -const colors = [ - 'red', - 'green', - 'yellow', - 'blue', - 'cyan' -] - function GetRandomColor (ip) { if (!ip) { return 'red'