From dbc65b043057370260e9e007e72a7969f0ae5cce Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 18 Jun 2022 00:44:02 -0400 Subject: [PATCH] logger update --- src/Logger.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Logger.js b/src/Logger.js index 2f1411e..5962c1c 100644 --- a/src/Logger.js +++ b/src/Logger.js @@ -6,20 +6,20 @@ class Logger { } log(args) { - console.log(chalk.green(`[${this.context}]`), args); + console.log(chalk.green(`[`) + chalk.green(`${this.context}`) + chalk.green(`]`), args); } warn(args) { - console.warn(chalk.yellow(`[WARN] [${this.context}]`), args); + console.warn(chalk.yellow(`[WARN] [`) + chalk.yellow(`${this.context}`) + chalk.yellow(`]`), args); } error(args) { - console.error(chalk.red(`[ERR] [${this.context}]`), args); + console.error(chalk.red(`[ERR] [`) + chalk.red(`${this.context}`) + chalk.red(`]`), args); } debug(args) { if (process.env.DEBUG_ENABLED) { - console.log(chalk.blue(`[DEBUG] [${this.context}]`), args); + console.log(chalk.blue(`[DEBUG] [`) + chalk.blue(`${this.context}`) + chalk.blue(`]`), args); } } }