From 3be89e970291af3afed04d47c9f15ccf920ce82d Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 4 Feb 2019 12:09:59 +0900 Subject: Better logging --- src/misc/logger.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/misc') diff --git a/src/misc/logger.ts b/src/misc/logger.ts index abb3db6a3d..e086445b37 100644 --- a/src/misc/logger.ts +++ b/src/misc/logger.ts @@ -45,13 +45,13 @@ export default class Logger { this.log(important ? chalk.bgGreen.white('DONE') : chalk.green('DONE'), chalk.green(message), important); } - public info(message: string, important = false): void { // それ以外 - this.log(chalk.blue('INFO'), message, important); - } - - public debug(message: string, important = false): void { // デバッグ用に使う + public debug(message: string, important = false): void { // デバッグ用に使う(開発者にとっては必要だが利用者にとっては不要な情報) if (process.env.NODE_ENV != 'production') { this.log(chalk.gray('VERB'), chalk.gray(message), important); } } + + public info(message: string, important = false): void { // それ以外 + this.log(chalk.blue('INFO'), message, important); + } } -- cgit v1.2.3-freya