reverted d58f218b9149d362ebb0b8ce697cf403569d14cd because logger is not needed on android
1 file changed
tree: 07a2748dace184c9119962e9b0ea79b9254e7ff8
  1. doc/
  2. src/
  3. tests/
  4. www/
  5. .gitignore
  6. CONTRIBUTING.md
  7. LICENSE
  8. NOTICE
  9. package.json
  10. plugin.xml
  11. README.md
  12. RELEASENOTES.md
README.md

cordova-plugin-console

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.