realm-js/examples/cordova/plugins/cordova-plugin-console
Ari Lazier fa52cea8c3 function cordova example 2015-09-01 15:47:06 -07:00
..
doc function cordova example 2015-09-01 15:47:06 -07:00
src move js work from realm-cocoa-private 2015-08-13 09:12:48 -07:00
tests function cordova example 2015-09-01 15:47:06 -07:00
www move js work from realm-cocoa-private 2015-08-13 09:12:48 -07:00
CONTRIBUTING.md move js work from realm-cocoa-private 2015-08-13 09:12:48 -07:00
LICENSE move js work from realm-cocoa-private 2015-08-13 09:12:48 -07:00
NOTICE move js work from realm-cocoa-private 2015-08-13 09:12:48 -07:00
README.md function cordova example 2015-09-01 15:47:06 -07:00
RELEASENOTES.md function cordova example 2015-09-01 15:47:06 -07:00
package.json function cordova example 2015-09-01 15:47:06 -07:00
plugin.xml function cordova example 2015-09-01 15:47:06 -07:00

README.md

cordova-plugin-console

Build Status

This plugin is meant to ensure that console.log() is as useful as it can be. It adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows. If you are happy with how console.log() works for you, then you probably don't need this plugin.

This plugin defines a global console object.

Although the object is in the global scope, features provided by this plugin are not available until after the deviceready event.

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log("console.log works well");
}

Installation

cordova plugin add cordova-plugin-console

Android Quirks

On some platforms other than Android, console.log() will act on multiple arguments, such as console.log("1", "2", "3"). However, Android will act only on the first argument. Subsequent arguments to console.log() will be ignored. This plugin is not the cause of that, it is a limitation of Android itself.