import { green , yellow , red , bold } from 'kleur' ; import { LoggerConfig } from './types' ; export default class Logger { private config : LoggerConfig ; constructor ( initialConfig ) { this . config = initialConfig ; } print ( message ) { console . log ( green ( message ) ) ; } printTitle ( message ) { console . log ( bold ( ) . underline ( ) . cyan ( `\n${ message }\n` ) ) ; } printWarning ( message ) { console . log ( yellow ( message ) ) ; } printError ( message ) { console . log ( red ( message ) ) ; } }