Last active
February 11, 2021 03:54
Dev Build Logger
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"; | |
import figures from "figures"; | |
module.exports = { | |
log: console.log, | |
error: (...messages) => console.error(chalk.red(figures.cross, ...messages)), | |
info: (...messages) => console.info(chalk.cyan(figures.info, ...messages)), | |
success: (...messages) => console.log(chalk.green(figures.tick, ...messages)), | |
warn: (...messages) => console.log(chalk.yellow(figures.warning, ...messages)), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment