You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ak...@apache.org on 2015/07/25 08:05:46 UTC

[1/2] cordova-plugin-console git commit: CB-5089 Document supported methods for console object

Repository: cordova-plugin-console
Updated Branches:
  refs/heads/master b9fc01e7d -> 851c0c3ed


CB-5089 Document supported methods for console object


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/be6d68a9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/be6d68a9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/be6d68a9

Branch: refs/heads/master
Commit: be6d68a9f4adfba1fbd880dc91bdcc7e539cd668
Parents: b9fc01e
Author: Andrey Kurdyumov <ka...@gmail.com>
Authored: Sat Jul 25 12:00:40 2015 +0600
Committer: Andrey Kurdyumov <ka...@gmail.com>
Committed: Sat Jul 25 12:00:40 2015 +0600

----------------------------------------------------------------------
 README.md | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/be6d68a9/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 35352cc..7387891 100644
--- a/README.md
+++ b/README.md
@@ -45,3 +45,42 @@ 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`


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


[2/2] cordova-plugin-console git commit: Document formatting options for the console object

Posted by ak...@apache.org.
Document formatting options for the console object


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/851c0c3e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/851c0c3e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/851c0c3e

Branch: refs/heads/master
Commit: 851c0c3edd3a331155d52dc5e5cabd88be4ec0f9
Parents: be6d68a
Author: Andrey Kurdyumov <ka...@gmail.com>
Authored: Sat Jul 25 12:04:58 2015 +0600
Committer: Andrey Kurdyumov <ka...@gmail.com>
Committed: Sat Jul 25 12:04:58 2015 +0600

----------------------------------------------------------------------
 README.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/851c0c3e/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 7387891..c835575 100644
--- a/README.md
+++ b/README.md
@@ -84,3 +84,17 @@ Methods of the `console` object which are implemented, but do nothing:
 - `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