import chalk from 'chalk' ; const SEPARATOR = '\n' ; export default class LogService { static log = ( ... messages ) : void => { console . log ( `${ LogService . formatMessages ( messages ) }` ) ; } ; static debug = ( ... messages ) : void => { console . log ( `${ chalk . gray . bold ( 'debug' ) } ${ LogService . formatMessages ( messages ) }` ) ; } ; static success = ( ... messages ) : void => { console . log ( `${ chalk . green . bold ( 'success' ) } ${ LogService . formatMessages ( messages ) }` ) ; } ; static info = ( ... messages ) : void => { console . log ( `${ chalk . cyan . bold ( 'info' ) } ${ LogService . formatMessages ( messages ) }` ) ; } ; static warn = ( ... messages ) : void => { console . warn ( `${ chalk . yellow . bold ( 'warn' ) } ${ LogService . formatMessages ( messages ) }` ) ; } ; static error = ( ... messages ) : void => { console . error ( `${ chalk . red . bold ( 'error' ) } ${ LogService . formatMessages ( messages ) }` ) ; } ; private static formatMessages = ( messages ) => { return chalk . reset ( messages . join ( SEPARATOR ) ) ; } ; }