lib/Persistence.js
function getLogsObject (name, callback) {
  fs.readFile(path.join(LOG_DIR, name), function (err, data) {
    if (err) {
      return callback(err, null);
    }

    safejson.parse(data, function (err, logArray) {
      if (err) {
        return callback(err, null);
      }

      callback(null, {
        logs: logArray
      });
    });
  });
}
function getLogsObject (name, callback) {
  fs.readFile(path.join(LOG_DIR, name), function (err, data) {
    if (err) {
      return callback(err, null);
    }

    safejson.parse(data, function (err, logArray) {
      if (err) {
        return callback(err, null);
      }

      callback(null, {
        logs: logArray
      });
    });
  });
}
Read a log file with the given name
@param  {String}   name
@param  {Function} callback