export enum LogType { SUCCESS = 'SUCCESS' , ERROR = 'ERROR' , INFO = 'INFO' , IMPORTANT = 'IMPORTANT' , YEOMAN = 'YEOMAN' , WARNING = 'WARNING' } export abstract class OutputAdapter { public log ( type , popupMessage , outputMessage ? , stackTrace ? ) { if ( type === LogType . ERROR ) { if ( popupMessage ) { console . error ( popupMessage ) ; } if ( outputMessage ) { console . error ( outputMessage ) ; } if ( stackTrace ) { console . error ( stackTrace ) ; } } else { if ( popupMessage ) { console . log ( popupMessage ) ; } if ( outputMessage ) { console . log ( outputMessage ) ; } } } }