import ILogger from './ILogger' ; import stringifyMessage from './stringifyMessage' ; export default class Logger implements ILogger { public fatal ( message ) { console . error ( stringifyMessage ( message , 'fatal' ) ) ; } public error ( message ) { console . error ( stringifyMessage ( message , 'error' ) ) ; } public warning ( message ) { console . info ( stringifyMessage ( message , 'warning' ) ) ; } public info ( message ) { console . info ( stringifyMessage ( message , 'info' ) ) ; } public debug ( message ) { console . info ( stringifyMessage ( message , 'debug' ) ) ; } }