How to use the beaver-logger/client.flush function in beaver-logger

To help you get started, we’ve selected a few beaver-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paypal / paypal-checkout-components / src / legacy / interface.js View on Github external
function instrumentButtonClick(type : string) {
    track({
        [ FPTI.KEY.STATE ]:       FPTI.STATE.LOAD,
        [ FPTI.KEY.TRANSITION ]:  FPTI.TRANSITION.BUTTON_CLICK,
        [ FPTI.KEY.BUTTON_TYPE ]: type
    });
    flushLogs();
}
github paypal / paypal-checkout-components / src / legacy / util.js View on Github external
export function logRedirect(location : string) {

    if (redirected) {
        warn(`multiple_redirects`);
    }

    if (urlWillRedirectPage(location)) {
        redirected = true;
    }

    flushLogs();
}
github paypal / paypal-checkout-components / src / legacy / interface.js View on Github external
function instrumentButtonRender(type : string) {
    info(`render_${ type }_button`);

    track({
        [ FPTI.KEY.STATE ]:       FPTI.STATE.LOAD,
        [ FPTI.KEY.TRANSITION ]:  FPTI.TRANSITION.BUTTON_RENDER,
        [ FPTI.KEY.BUTTON_TYPE ]: type
    });

    flushLogs();
}