How to use the cordova-common.CordovaLogger.get function in cordova-common

To help you get started, we’ve selected a few cordova-common 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 sozialhelden / wheelmap-frontend / platforms / ios / cordova / Api.js View on Github external
function setupEvents (externalEventEmitter) {
    if (externalEventEmitter) {
        // This will make the platform internal events visible outside
        events.forwardEventsTo(externalEventEmitter);
    } else {
        // There is no logger if external emitter is not present,
        // so attach a console logger
        CordovaLogger.get().subscribe(events);
    }
}
github weexteam / pack-android-tools-for-Apache-Weex / bin / templates / cordova / Api.js View on Github external
function setupEvents(externalEventEmitter) {
    if (externalEventEmitter) {
        // This will make the platform internal events visible outside
        selfEvents.forwardEventsTo(externalEventEmitter);
        return externalEventEmitter;
    }

    // There is no logger if external emitter is not present,
    // so attach a console logger
    CordovaLogger.get().subscribe(selfEvents);
    return selfEvents;
}
github ionicthemes / ionic-google-login / platforms / android / cordova / Api.js View on Github external
function setupEvents(externalEventEmitter) {
    if (externalEventEmitter) {
        // This will make the platform internal events visible outside
        selfEvents.forwardEventsTo(externalEventEmitter);
        return externalEventEmitter;
    }

    // There is no logger if external emitter is not present,
    // so attach a console logger
    CordovaLogger.get().subscribe(selfEvents);
    return selfEvents;
}
github Adobe-Marketing-Cloud-Apps / app-sample-android-phonegap / platforms / android / cordova / Api.js View on Github external
function setupEvents(externalEventEmitter) {
    if (externalEventEmitter) {
        // This will make the platform internal events visible outside
        selfEvents.forwardEventsTo(externalEventEmitter);
        return externalEventEmitter;
    }

    // There is no logger if external emitter is not present,
    // so attach a console logger
    CordovaLogger.get().subscribe(selfEvents);
    return selfEvents;
}
github intel-iot-devkit / android-things-samples / Zombie / ZombieDetector / platforms / android / cordova / Api.js View on Github external
function setupEvents(externalEventEmitter) {
    if (externalEventEmitter) {
        // This will make the platform internal events visible outside
        selfEvents.forwardEventsTo(externalEventEmitter);
        return externalEventEmitter;
    }

    // There is no logger if external emitter is not present,
    // so attach a console logger
    CordovaLogger.get().subscribe(selfEvents);
    return selfEvents;
}
github apache / cordova-ios / bin / templates / scripts / cordova / loggingHelper.js View on Github external
adjustLoggerLevel: function (opts) {
        if (opts.verbose || (Array.isArray(opts) && opts.indexOf('--verbose') !== -1)) {
            CordovaLogger.get().setLevel('verbose');
        } else if (opts.silent || (Array.isArray(opts) && opts.indexOf('--silent') !== -1)) {
            CordovaLogger.get().setLevel('error');
        }
    }
};
github katzer / cordova-plugin-background-mode / platforms / windows / cordova / lib / loggingHelper.js View on Github external
adjustLoggerLevel: function (opts) {
        if (opts instanceof Array) {
            opts.silent = opts.indexOf('--silent') !== -1;
            opts.verbose = opts.indexOf('--verbose') !== -1 || opts.indexOf('-d') !== -1;
        }

        if (opts.verbose) {
            CordovaLogger.get().setLevel('verbose');
        }

        if (opts.silent) {
            CordovaLogger.get().setLevel('error');
        }
    }
};