import Logger from './Logger' ; import LogLevel from './LogLevel' ; /**
 * [[NoOpLogger]] does not log any message.
 */ export default class NoOpLogger implements Logger { level : LogLevel ; constructor ( level = LogLevel . OFF ) { this . level = level ; } info ( _msg ) { } warn ( _msg ) { } error ( _msg ) { } debug ( debugFunction ) { if ( LogLevel . DEBUG < this . level ) { return ; } if ( typeof debugFunction !== 'string' ) { debugFunction ( ) ; } } setLogLevel ( level ) { this . level = level ; } getLogLevel ( ) { return this . level ; } }