Skip to content

Commit

Permalink
Updated LogmithJS Code #39
Browse files Browse the repository at this point in the history
  • Loading branch information
TanmoySG authored May 13, 2022
1 parent e833358 commit 4895498
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions libraries/js/logsmith.js
Original file line number Diff line number Diff line change
@@ -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"))
// 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(){

}
}

0 comments on commit 4895498

Please sign in to comment.