import dayjs from 'dayjs' ; export default class Logger { static info ( ... msg ) { this . log ( 'info' , ... msg ) ; } static warn ( ... objs ) { this . log ( 'warn' , ... objs ) ; } static error ( ... objs ) { this . log ( 'error' , ... objs ) ; } static log ( level , ... msg ) { let info = msg . join ( ' ' ) ; console . log ( `${ dayjs ( ) . format ( 'HH:mm:ss' ) } ${ level . toUpperCase ( ) } ${ info }` ) ; } }