import { Injectable } from '@angular/core' ; import { NgxUploadLogger } from '../../src/utils/logger.model' ; @ Injectable ( ) export class MockLogger implements NgxUploadLogger { output : any = { log : [ ] , error : [ ] , warn : [ ] , info : [ ] , debug : [ ] } ; log ( ... args ) { this . output . log . push ( ... args ) ; } error ( ... args ) { this . output . error . push ( ... args ) ; } warn ( ... args ) { this . output . warn . push ( ... args ) ; } info ( ... args ) { this . output . info . push ( ... args ) ; } debug ( ... args ) { this . output . debug . push ( ... args ) ; } }