class Logger { debugModeEnabled : boolean ; constructor ( debugModeEnabled ? ) { this . debugModeEnabled = ! ! debugModeEnabled ; } debug ( ... args ) { if ( ! this . debugModeEnabled ) { return ; } console . debug ( '[Papercups]' , ... args ) ; } log ( ... args ) { if ( ! this . debugModeEnabled ) { return ; } console . log ( '[Papercups]' , ... args ) ; } info ( ... args ) { console . info ( '[Papercups]' , ... args ) ; } warn ( ... args ) { console . warn ( '[Papercups]' , ... args ) ; } error ( ... args ) { console . error ( '[Papercups]' , ... args ) ; } } export default Logger ;