From 37e63330fbafdead76d9ee464c5bd6120e3a9059 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 8 Aug 2022 22:10:07 +0200 Subject: [PATCH] [mirotalksfu] - typo --- app/src/Logger.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/src/Logger.js b/app/src/Logger.js index bd6ee20a..6e252c17 100644 --- a/app/src/Logger.js +++ b/app/src/Logger.js @@ -1,14 +1,16 @@ 'use strict'; const Log = { - // mode - reset: '\x1b[0m', - bright: '\x1b[1m', - dim: '\x1b[2m', - underscore: '\x1b[4m', - blink: '\x1b[5m', - reverse: '\x1b[7m', - hidden: '\x1b[8m', + // action + ac: { + reset: '\x1b[0m', + bright: '\x1b[1m', + dim: '\x1b[2m', + underscore: '\x1b[4m', + blink: '\x1b[5m', + reverse: '\x1b[7m', + hidden: '\x1b[8m', + }, // Foreground (text) colors fg: { black: '\x1b[30m', @@ -37,7 +39,7 @@ const Log = { module.exports = class Logger { constructor(appName = 'miroTalkSfu', debugOn = true) { - this.appName = Log.fg.yellow + appName + Log.reset; + this.appName = Log.fg.yellow + appName + Log.ac.reset; this.debugOn = debugOn; } @@ -62,6 +64,6 @@ module.exports = class Logger { } getDataTime() { - return Log.fg.cyan + new Date().toISOString().replace(/T/, ' ').replace(/Z/, '') + Log.reset; + return Log.fg.cyan + new Date().toISOString().replace(/T/, ' ').replace(/Z/, '') + Log.ac.reset; } };