mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
ログの表示スタイルを変更
This commit is contained in:
parent
416a71b528
commit
af10e7194c
|
@ -27,23 +27,23 @@ class Logger {
|
|||
}
|
||||
|
||||
info = (message: string) => {
|
||||
console.log(chalk.blue('[ INFO ]') + ' ' + this.tagString() + ':\t' + message);
|
||||
console.log(chalk.blue('[INFO]') + '\t ' + this.tagString() + ':\t' + message);
|
||||
}
|
||||
|
||||
warn = (message: string) => {
|
||||
console.log(chalk.yellow('[ WARN ]') + ' ' + this.tagString() + ':\t' + message);
|
||||
console.log(chalk.yellow('[WARN]') + '\t ' + this.tagString() + ':\t' + message);
|
||||
}
|
||||
|
||||
error = (message: string) => {
|
||||
console.log(chalk.red('[ERROR ]') + ' ' + this.tagString() + ':\t' + message);
|
||||
console.log(chalk.red('[ERROR]') + '\t ' + this.tagString() + ':\t' + message);
|
||||
}
|
||||
|
||||
debug = (message: string) => {
|
||||
console.log(chalk.gray('[DEBUG ]' + ' ' + this.tagString() + ':\t' + message));
|
||||
console.log(chalk.gray('[DEBUG]' + '\t ' + this.tagString() + ':\t' + message));
|
||||
}
|
||||
|
||||
success = (message: string) => {
|
||||
console.log(chalk.green('[SUCCESS]') + ' ' + this.tagString() + ':\t' + message);
|
||||
console.log(chalk.green('[SUCC]') + '\t ' + this.tagString() + ':\t' + message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user