From 48954984dd7be15d07e7d18b016f887a7d10a6aa Mon Sep 17 00:00:00 2001 From: Tanmoy Sen Gupta Date: Fri, 13 May 2022 06:46:08 +0000 Subject: [PATCH] Updated LogmithJS Code #39 --- libraries/js/logsmith.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/libraries/js/logsmith.js b/libraries/js/logsmith.js index 7d54a23..5414bd2 100644 --- a/libraries/js/logsmith.js +++ b/libraries/js/logsmith.js @@ -1,19 +1,21 @@ import chalk from 'chalk'; -// -// "WARNING": "yellow", -// "INFO": "blue", -// "SUCCESS": "green", -// "FAILURE": "red", -// "CRITICAL": "grey" -// - const logLevels = { - WARN: chalk.red, + WARN: chalk.yellow, INFO: chalk.blue, - CRITICAL : chalk.bgRed.gray + CRITICAL : chalk.bgRed.gray, + SUCCESS : chalk.green, + FAILURE : chalk.red } -console.log(logLevels.INFO("test")) -console.log(logLevels.WARN("warn")) -console.log(logLevels.CRITICAL("crit")) \ No newline at end of file +// console.log(logLevels.INFO("INFO")) +// console.log(logLevels.WARN("WARN")) +// console.log(logLevels.CRITICAL("CRITICAL")) +// console.log(logLevels.SUCCESS("SUCCESS")) +// console.log(logLevels.FAILURE("FAILURE")) + +class Logsmith{ + constructor(){ + + } +} \ No newline at end of file