code: function writeLog(type, category){
      return function(messages) {
          var funcs = [];
  
          _.each(messages, function(message){
              funcs.push(this.client.logAsync(message, [type, category]));
          }.bind(this));
  
          return BB.all(funcs);
      };
  
  }
docs: Internal method to append our log entry to loggly.
  @param type Type of entry (debug, info, error, warn, trace)
  @param category User defined label for the entry
  @returns {function}