[mirotalksfu] - typo

هذا الالتزام موجود في:
Miroslav Pejic
2022-08-08 22:10:07 +02:00
الأصل b82df8e6d3
التزام 37e63330fb

عرض الملف

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