feat(lib): adding the info log
This commit is contained in:
parent
9493cb7cd9
commit
2fdff650cc
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ export const log = {
|
||||||
console.error(chalk.redBright(`\t${error.message}`));
|
console.error(chalk.redBright(`\t${error.message}`));
|
||||||
console.error(chalk.redBright(`\tStack:\n${error.stack ?? 'No stack available'}`));
|
console.error(chalk.redBright(`\tStack:\n${error.stack ?? 'No stack available'}`));
|
||||||
},
|
},
|
||||||
|
info: (str: string) => {
|
||||||
|
console.log(chalk.grey(`ℹ️ | ${str}`));
|
||||||
|
},
|
||||||
success: (str: string) => {
|
success: (str: string) => {
|
||||||
console.log(chalk.greenBright(`✅ | ${str}`));
|
console.log(chalk.greenBright(`✅ | ${str}`));
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue