commit | b9fc01e7d4434713ab316c7013a39244bc0e68c4 | [log] [tgz] |
---|---|---|
author | Jesse MacFadyen <purplecabbage@gmail.com> | Wed Jul 08 15:44:02 2015 -0700 |
committer | Jesse MacFadyen <purplecabbage@gmail.com> | Wed Jul 08 15:44:02 2015 -0700 |
tree | 07a2748dace184c9119962e9b0ea79b9254e7ff8 | |
parent | 9ad6b60a3d64b79081f72580392c3bc4986f140c [diff] |
reverted d58f218b9149d362ebb0b8ce697cf403569d14cd because logger is not needed on android
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.