lib/config/index.js
function useLogger(loggerOrFactoryFunction) {
    cutil.assertObjectOrFunction(loggerOrFactoryFunction, 'loggerOrFactoryFunction');

    if (typeof(loggerOrFactoryFunction) === 'function') {
      logger = loggerOrFactoryFunction();
    }
    else {
      logger = loggerOrFactoryFunction;
    }
  }
function useLogger(loggerOrFactoryFunction) {
    cutil.assertObjectOrFunction(loggerOrFactoryFunction, 'loggerOrFactoryFunction');

    if (typeof(loggerOrFactoryFunction) === 'function') {
      logger = loggerOrFactoryFunction();
    }
    else {
      logger = loggerOrFactoryFunction;
    }
  }
function useLogger ( loggerOrFactoryFunction ) { cutil . assertObjectOrFunction ( loggerOrFactoryFunction , 'loggerOrFactoryFunction' ) ; if ( typeof ( loggerOrFactoryFunction ) === 'function' ) { logger = loggerOrFactoryFunction ( ) ; } else { logger = loggerOrFactoryFunction ; } }
Override default logger instance with the provided logger
@public
@param {Object|Function} loggerOrFactoryFunction - the logger instance or factory function
Override default logger instance with the provided logger