cacheService.js
function log(isError, message, data){
    var indentifier = 'cacheService: ';
    if(self.verbose || isError){
      if(data) {
        console.log(indentifier + message, data);
      } else {
        console.log(indentifier + message);
      }
    }
  }
function log(isError, message, data){
    var indentifier = 'cacheService: ';
    if(self.verbose || isError){
      if(data) {
        console.log(indentifier + message, data);
      } else {
        console.log(indentifier + message);
      }
    }
  }
function log ( isError , message , data ) { var indentifier = 'cacheService: ' ; if ( self . verbose || isError ) { if ( data ) { console . log ( indentifier + message , data ) ; } else { console . log ( indentifier + message ) ; } } }
Logging utility function
@param {boolean} isError
@param {string} message
@param {object} data
Logging utility function