attempt to fix npm markdown issue
1 file changed
tree: cb6c0b20369d1f11d5102fd3a7870caf3659ee3a
  1. .gitignore
  2. .travis.yml
  3. CONTRIBUTING.md
  4. LICENSE
  5. NOTICE
  6. README.md
  7. RELEASENOTES.md
  8. doc/
  9. package.json
  10. plugin.xml
  11. src/
  12. www/
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.