cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akurdyu...@apache.org
Subject [2/2] cordova-plugin-console git commit: Document formatting options for the console object
Date Sat, 25 Jul 2015 06:05:47 GMT
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 <kant2002@gmail.com>
Authored: Sat Jul 25 12:04:58 2015 +0600
Committer: Andrey Kurdyumov <kant2002@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


Mime
View raw message