Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5416B19E95 for ; Wed, 23 Mar 2016 19:14:23 +0000 (UTC) Received: (qmail 19555 invoked by uid 500); 23 Mar 2016 19:14:23 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 19528 invoked by uid 500); 23 Mar 2016 19:14:23 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 19519 invoked by uid 99); 23 Mar 2016 19:14:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2016 19:14:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 92A50C19E1 for ; Wed, 23 Mar 2016 19:14:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.19 X-Spam-Level: ** X-Spam-Status: No, score=2.19 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_LINEPADDING=1.2, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hNjLpYGHdOlf for ; Wed, 23 Mar 2016 19:14:17 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id B736D5FB08 for ; Wed, 23 Mar 2016 19:14:16 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7C8C8E584B for ; Wed, 23 Mar 2016 19:14:14 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 7E16A3A0AC8 for ; Wed, 23 Mar 2016 19:14:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1736375 [23/44] - in /cordova/site/public: ./ announcements/2016/03/22/ blog/ docs/en/6.x/guide/cli/ docs/en/6.x/guide/hybrid/plugins/ docs/en/6.x/reference/cordova-cli/ docs/en/6.x/reference/cordova-plugin-splashscreen/ docs/en/dev/cordov... Date: Wed, 23 Mar 2016 19:14:11 -0000 To: commits@cordova.apache.org From: steven@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160323191414.7E16A3A0AC8@svn01-us-west.apache.org> Added: cordova/site/public/docs/en/dev/gen/cordova-plugin-console/index.html URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/gen/cordova-plugin-console/index.html?rev=1736375&view=auto ============================================================================== --- cordova/site/public/docs/en/dev/gen/cordova-plugin-console/index.html (added) +++ cordova/site/public/docs/en/dev/gen/cordova-plugin-console/index.html Wed Mar 23 19:14:10 2016 @@ -0,0 +1,2842 @@ + + + + + + + + + + + + + Apache Cordova + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + + + + + + + + +
+ + + + + +
+ + +
+ +
+ +
+ + + Edit + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + +

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.

+ +

Supported Methods

+ +

The plugin support following methods of the console object:

+ +
    +
  • console.log
  • +
  • console.error
  • +
  • console.exception
  • +
  • console.warn
  • +
  • console.info
  • +
  • console.debug
  • +
  • console.assert
  • +
  • console.dir
  • +
  • console.dirxml
  • +
  • console.time
  • +
  • console.timeEnd
  • +
  • console.table
  • +
+ +

Partially supported Methods

+ +

Methods of the console object which implemented, but behave different from browser implementation:

+ +
    +
  • console.group
  • +
  • console.groupCollapsed
  • +
+ +

The grouping methods are just log name of the group and don't actually indicate grouping for later +calls to console object methods.

+ +

Not supported Methods

+ +

Methods of the console object which are implemented, but do nothing:

+ +
    +
  • console.clear
  • +
  • console.trace
  • +
  • console.groupEnd
  • +
  • console.timeStamp
  • +
  • console.profile
  • +
  • console.profileEnd
  • +
  • console.count
  • +
+ +

Supported formatting

+ +

The following formatting options available:

+ +

Format chars:

+ +
    +
  • %j - format arg as JSON
  • +
  • %o - format arg as JSON
  • +
  • %c - format arg as ''. No color formatting could be done.
  • +
  • %% - replace with '%'
  • +
+ +

any other char following % will format it's +arg via toString().

+ + +
+
+
+ + + + +
+ + + + + + + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org