forked from Hri7566/mpp-server-dev2
This commit is contained in:
parent
5ddb9a18eb
commit
a92c5fa10f
|
@ -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