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