fix(.enableConsole()): now works

This commit is contained in:
Philipp Kunz 2018-07-10 22:36:53 +02:00
parent 0ee2b8295a
commit 485e04c0b3

View File

@ -33,7 +33,11 @@ export class Smartlog {
* @param logLevelArg * @param logLevelArg
* @param logMessageArg * @param logMessageArg
*/ */
log(logLevelArg: TLogLevel, logMessageArg: string) {} log(logLevelArg: TLogLevel, logMessageArg: string) {
if (this.consoleEnabled) {
console.log(`${logLevelArg}: ${logMessageArg}`)
}
}
silly(logMessageArg: string) { silly(logMessageArg: string) {
this.log('silly', logMessageArg); this.log('silly', logMessageArg);