import { injectable } from 'inversify'; /** * Mock of a logger, does not log anywhere */ @injectable() export class LoggerMock implements LoggerInterface { public getLogFile(): string { return ''; } public getExceptionsLogFile(): string { return ''; } public log(): Promise { return Promise.resolve(); } public fatal(): Promise { return this.log(); } public error(): Promise { return this.log(); } public warning(): Promise { return this.log(); } public notice(): Promise { return this.log(); } public info(): Promise { return this.log(); } public debug(): Promise { return this.log(); } public exception(): Promise { return Promise.resolve(); } }