import { debug , info } from '../support' ; export class Logging { name : string = '' ; log ( action , ... msg ) { let className = this . constructor . name ; info ( `${ action }: ${ className }('${ this . name }')` , ... msg ) ; } debug ( context , ... msg ) { let className = this . constructor . name ; debug ( `${ className }('${ this . name }'): ${ context }` , ... msg ) ; } fail ( action , ... msg ) { let className = this . constructor . name ; console . error ( '\x1b[31m%s' , `${ action }: ${ className }('${ this . name }')` , ... msg , '\x1b[0m' ) ; } }