Created
March 23, 2023 00:36
-
-
Save Inplex-sys/1b8d942c671b5d6a45f3f5d25f7b03d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import chalk from 'chalk'; | |
class Logs { | |
static Info( message ) { | |
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.cyan('[INFO] ') + message); | |
} | |
static Error( message ) { | |
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.red('[ERROR] ') + message); | |
} | |
static Success( message ) { | |
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.green('[SUCCESS] ') + message); | |
} | |
static Warning( message ) { | |
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.yellow('[WARNING] ') + message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment