🔧 Global formatting and update formatting
This commit is contained in:
8
bin/options/logger.ts
vendored
8
bin/options/logger.ts
vendored
@@ -3,19 +3,19 @@ import log from 'loglevel';
|
||||
|
||||
const logger = {
|
||||
info(...msg: any[]) {
|
||||
log.info(...msg.map(m => chalk.white(m)));
|
||||
log.info(...msg.map((m) => chalk.white(m)));
|
||||
},
|
||||
debug(...msg: any[]) {
|
||||
log.debug(...msg);
|
||||
},
|
||||
error(...msg: any[]) {
|
||||
log.error(...msg.map(m => chalk.red(m)));
|
||||
log.error(...msg.map((m) => chalk.red(m)));
|
||||
},
|
||||
warn(...msg: any[]) {
|
||||
log.info(...msg.map(m => chalk.yellow(m)));
|
||||
log.info(...msg.map((m) => chalk.yellow(m)));
|
||||
},
|
||||
success(...msg: any[]) {
|
||||
log.info(...msg.map(m => chalk.green(m)));
|
||||
log.info(...msg.map((m) => chalk.green(m)));
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user