[mirotalksfu] - typo
هذا الالتزام موجود في:
@@ -1,14 +1,16 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const Log = {
|
const Log = {
|
||||||
// mode
|
// action
|
||||||
reset: '\x1b[0m',
|
ac: {
|
||||||
bright: '\x1b[1m',
|
reset: '\x1b[0m',
|
||||||
dim: '\x1b[2m',
|
bright: '\x1b[1m',
|
||||||
underscore: '\x1b[4m',
|
dim: '\x1b[2m',
|
||||||
blink: '\x1b[5m',
|
underscore: '\x1b[4m',
|
||||||
reverse: '\x1b[7m',
|
blink: '\x1b[5m',
|
||||||
hidden: '\x1b[8m',
|
reverse: '\x1b[7m',
|
||||||
|
hidden: '\x1b[8m',
|
||||||
|
},
|
||||||
// Foreground (text) colors
|
// Foreground (text) colors
|
||||||
fg: {
|
fg: {
|
||||||
black: '\x1b[30m',
|
black: '\x1b[30m',
|
||||||
@@ -37,7 +39,7 @@ const Log = {
|
|||||||
|
|
||||||
module.exports = class Logger {
|
module.exports = class Logger {
|
||||||
constructor(appName = 'miroTalkSfu', debugOn = true) {
|
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;
|
this.debugOn = debugOn;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,6 +64,6 @@ module.exports = class Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getDataTime() {
|
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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم