index.js
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
    });
}
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
    });
}
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 } ) ; }
Setup connection to a specific account and log. Returns query function.
Setup connection to a specific account and log . Returns query function .