import * as chalk from "chalk" ; export default class Logger { private static log ( type , module , message , colour ) { console . log ( colour ( `[${ new Date ( ) . toLocaleTimeString ( ) }] [${ type }] [${ module }] ${ message }` ) ) ; } static info ( module , message ) { Logger . log ( "Info" , module , message , chalk . white ) ; } static warn ( module , message ) { Logger . log ( "Warn" , module , message , chalk . yellow ) ; } static error ( module , message ) { Logger . log ( "Error" , module , message , chalk . red ) ; } static debug ( module , message ) { if ( process . env . NODE_ENV !== "production" ) { Logger . log ( "Debug" , module , message , chalk . gray ) ; } } }