cacheModule.js
function log(isError, message, data){
    if(self.verbose || isError){
      if(data) console.log(self.type + ': ' + message, data);
      else console.log(self.type + message);
    }
  }
function log(isError, message, data){
    if(self.verbose || isError){
      if(data) console.log(self.type + ': ' + message, data);
      else console.log(self.type + message);
    }
  }
function log ( isError , message , data ) { if ( self . verbose || isError ) { if ( data ) console . log ( self . type + ': ' + message , data ) ; else console . log ( self . type + message ) ; } }
Error logging logic
@param {boolean} isError
@param {string} message
@param {object} data
Error logging logic