forked from Hri7566/mpp-server-dev2
This commit is contained in:
parent
391b8e248a
commit
345882dba7
|
@ -1,6 +1,6 @@
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
|
|
||||||
module.exports = class Logger {
|
class Logger {
|
||||||
constructor (context) {
|
constructor (context) {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
}
|
}
|
||||||
|
@ -22,4 +22,7 @@ module.exports = class Logger {
|
||||||
console.log(chalk.blue(`[DEBUG] [${this.context}]`), args);
|
console.log(chalk.blue(`[DEBUG] [${this.context}]`), args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = Logger;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue