commit | 440bd16ad58fbac1716ea52c7d475fc2b8dc1fe9 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Wed Apr 01 13:51:58 2015 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Wed Apr 01 13:51:58 2015 -0700 |
tree | 3be76f070cc6e3c70877f66d625575a015761241 | |
parent | c4d9aa6020b501caf1ab7726ac5a576b2216d380 [diff] |
Revert "CB-8683 changed plugin-id to pacakge-name" This reverts commit c4d9aa6020b501caf1ab7726ac5a576b2216d380.
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"); }
cordova plugin add cordova-plugin-console
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.