function() {

    // If logger is disabled, dont build anything
    if (!cm.config.easylogger.enabled) return

    // Building logger
    logger = new winston.Logger({})

    // Adding transports
    for (var i = 0; i < cm.config.easylogger.transports.length; i++) {
      var transport = cm.config.easylogger.transports[i]
      if (transport.enabled){
        logger.add(winston.transports[transport.type], transport)
        setCustomFormatter(transport.type, defaultFormatters[transport.formatter])
        print('info', transport.type + ' logger ... OK')
      }

      if( i == cm.config.easylogger.transports.length)
        console.dir(logger.transports)
    }
  }
function() {

    
    if (!cm.config.easylogger.enabled) return

    
    logger = new winston.Logger({})

    
    for (var i = 0; i < cm.config.easylogger.transports.length; i++) {
      var transport = cm.config.easylogger.transports[i]
      if (transport.enabled){
        logger.add(winston.transports[transport.type], transport)
        setCustomFormatter(transport.type, defaultFormatters[transport.formatter])
        print('info', transport.type + ' logger ... OK')
      }

      if( i == cm.config.easylogger.transports.length)
        console.dir(logger.transports)
    }
  }
function ( ) { // If logger is disabled, dont build anything if ( ! cm . config . easylogger . enabled ) return // Building logger logger = new winston . Logger ( { } ) // Adding transports for ( var i = 0 ; i < cm . config . easylogger . transports . length ; i ++ ) { var transport = cm . config . easylogger . transports [ i ] if ( transport . enabled ) { logger . add ( winston . transports [ transport . type ] , transport ) setCustomFormatter ( transport . type , defaultFormatters [ transport . formatter ] ) print ( 'info' , transport . type + ' logger ... OK' ) } if ( i == cm . config . easylogger . transports . length ) console . dir ( logger . transports ) } }
__ Private Methods ____________________________________________________ Logger builder
__ Private Methods ____________________________________________________ Logger builder