export class Logger { private static logErrorsOnly = false ; static setLogErrorsOnly ( logErrorsOnly ) { Logger . logErrorsOnly = logErrorsOnly ; } static log ( ... args ) { if ( ! Logger . logErrorsOnly ) { console . log ( ... args ) ; } } static error ( ... args ) { console . error ( ... args ) ; } }