import { ILogger } from 'polar-shared/src/logger/ILogger' ; /**
 * Does nothing other than collect stats on which methods were called for
 * testing purposes.
 */ export class StatsLogger implements ILogger { public readonly name : string = "stats" ; public readonly stats = new FilteredStats ( ) ; public notice ( msg , ... args ) { ++ this . stats . notice ; } public debug ( msg , ... args ) { ++ this . stats . debug ; } public verbose ( msg , ... args ) { ++ this . stats . verbose ; } public info ( msg , ... args ) { ++ this . stats . info ; } public warn ( msg , ... args ) { ++ this . stats . warn ; } public error ( msg , ... args ) { ++ this . stats . error ; } public async sync ( ) { } } export class FilteredStats { public notice : number = 0 ; public debug : number = 0 ; public verbose : number = 0 ; public info : number = 0 ; public warn : number = 0 ; public error : number = 0 ; }