summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-03 01:33:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-03 01:33:34 +0900
commita3e37294e5d4f381e7dfaefae823a7e3ef0a4203 (patch)
tree789f2f0a38c33062534a13e3bda756136bd5fd99 /src/misc
parentRefactoring of logger (diff)
downloadsharkey-a3e37294e5d4f381e7dfaefae823a7e3ef0a4203.tar.gz
sharkey-a3e37294e5d4f381e7dfaefae823a7e3ef0a4203.tar.bz2
sharkey-a3e37294e5d4f381e7dfaefae823a7e3ef0a4203.zip
Better logs
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/logger.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/logger.ts b/src/misc/logger.ts
index 0dbda4ca6f..2ca79dd4b6 100644
--- a/src/misc/logger.ts
+++ b/src/misc/logger.ts
@@ -29,16 +29,16 @@ export default class Logger {
this.log(chalk.red.bold('ERROR'), chalk.red.bold(message.toString()));
}
- public warn(message: string): void { // 実行を継続できるが改善すべき状況で使う
- this.log(chalk.yellow.bold('WARN'), chalk.yellow.bold(message));
+ public warn(message: string, important = false): void { // 実行を継続できるが改善すべき状況で使う
+ this.log(chalk.yellow.bold('WARN'), chalk.yellow.bold(message), important);
}
public succ(message: string, important = false): void { // 何かに成功した状況で使う
this.log(chalk.blue.green('DONE'), chalk.green.bold(message), important);
}
- public info(message: string): void { // それ以外
- this.log(chalk.blue.bold('INFO'), message);
+ public info(message: string, important = false): void { // それ以外
+ this.log(chalk.blue.bold('INFO'), message, important);
}
}