diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-04 12:09:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-04 12:09:59 +0900 |
| commit | 3be89e970291af3afed04d47c9f15ccf920ce82d (patch) | |
| tree | d95dedf7e14b2c83ca022e9642ea95b846f86f6c /src/misc | |
| parent | Make Logger#log method private (diff) | |
| download | sharkey-3be89e970291af3afed04d47c9f15ccf920ce82d.tar.gz sharkey-3be89e970291af3afed04d47c9f15ccf920ce82d.tar.bz2 sharkey-3be89e970291af3afed04d47c9f15ccf920ce82d.zip | |
Better logging
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/logger.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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); + } } |