export class Logger { server : any ; name : string ; constructor ( server , name ) { this . server = server ; this . name = name ; } error ( message ) { this . log ( "error" , message ) ; } warn ( message ) { this . log ( "warn" , message ) ; } info ( message ) { this . log ( "info" , message ) ; } debug ( message ) { this . log ( "debug" , message ) ; } log ( level , message ) { this . server . log ( [ level , this . name ] , message ) ; } }