From edd1baa9f4640b72df22c0fbf0eeec3da7f01b6b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 3 Feb 2019 20:23:53 +0900 Subject: [PATCH] :art: --- src/misc/logger.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/logger.ts b/src/misc/logger.ts index 15d2c84d7..f8f7aa732 100644 --- a/src/misc/logger.ts +++ b/src/misc/logger.ts @@ -33,7 +33,7 @@ export default class Logger { } public error(message: string | Error, important = false): void { // 実行を継続できない状況で使う - this.log(chalk.red('ERR '), chalk.red(message.toString()), important); + this.log(important ? chalk.bgRed.white('ERR ') : chalk.red('ERR '), chalk.red(message.toString()), important); } public warn(message: string, important = false): void { // 実行を継続できるが改善すべき状況で使う @@ -41,7 +41,7 @@ export default class Logger { } public succ(message: string, important = false): void { // 何かに成功した状況で使う - this.log(chalk.green('DONE'), chalk.green(message), important); + this.log(important ? chalk.bgGreen.white('DONE') : chalk.green('DONE'), chalk.green(message), important); } public info(message: string, important = false): void { // それ以外