diff --git a/index/src/app/utils/logger.ts b/index/src/app/utils/logger.ts deleted file mode 100644 index 6bb0b86..0000000 --- a/index/src/app/utils/logger.ts +++ /dev/null @@ -1,42 +0,0 @@ -import {environment} from '../../environments/environment'; - -export class Logger { - - private static inited = false; - - static info(obj: object) { - this.printLogInfo(); - if (environment.logger) { - // tslint:disable-next-line:no-console - console.info(obj); - } - } - - static debug(obj: object) { - this.printLogInfo(); - if (environment.logger) { - // tslint:disable-next-line:no-console - console.debug(obj); - } - } - - static error(obj: object) { - this.printLogInfo(); - if (environment.logger) { - // tslint:disable-next-line:no-console - console.error(obj); - } - } - - static printLogInfo() { - const option = { - environment: environment.production ? 'release' : 'debug', - }; - if (!this.inited) { - // tslint:disable-next-line:no-console - console.info(option); - this.inited = true; - } - } - -}