code: function logentriesConnect(options={}) {
      // Define path to access specific account, log set and log.
      let pathname = '/'       + encodeURIComponent(options.account) +
                     '/hosts/' + encodeURIComponent(options.logset) +
                     '/'       + encodeURIComponent(options.log) + '/';
  
      // Bind path argument in query functions.
      let json = logentriesJsonStream.bind(null, pathname);
      let raw  = logentriesRawStream.bind(null, pathname);
  
      return Object.assign(json, {
          json : json,
          raw  : raw
      });
  }
docs: Setup connection to a specific account and log. Returns query function.