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; } };