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:47 UTC

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

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