import chalk from 'chalk' ; import { debuglog } from 'util' ; const debug = debuglog ( 'cypress-har-generator' ) ; export class Logger { private static _instance : Logger ; static get Instance ( ) : Logger { if ( ! this . _instance ) { this . _instance = new Logger ( ) ; } return this . _instance ; } public info ( msg ) { this . log ( chalk . blue ( `🛈 ${ msg }` ) ) ; } public err ( msg ) { this . log ( chalk . red ( `🍑 ${ msg }` ) ) ; } public warn ( msg ) { this . log ( chalk . yellow ( `⚠ ${ msg }` ) ) ; } public debug ( msg ) { debug ( msg ) ; } private log ( msg ) { console . log ( msg ) ; } }