[
https://issues.apache.org/jira/browse/CB-634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Patrick Mueller resolved CB-634.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
fixed in [commit
2da5|https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=2da5b44e4a603cf699279d7ef6b8d5d1b07b17ad]
* added utils.format() to utils.js
* added test cases for utils.format() in test.utils.js
* added some additional safety checks in the packager
for the debug bundles
* drive-by adding --verbose to .wr file
Note that I also "refactored the source" of the
utils.js module, which I'll be discussing on the
m/l.
> need an sprintf implementation in utils
> ---------------------------------------
>
> Key: CB-634
> URL: https://issues.apache.org/jira/browse/CB-634
> Project: Apache Callback
> Issue Type: Sub-task
> Components: CordovaJS
> Reporter: Patrick Mueller
> Assignee: Patrick Mueller
> Fix For: 1.8.0
>
>
> for the new upcoming/enhanced logging and console capabilities, we need to do
> some sprintf-like processing. See [FireBug's console.log()
> API|http://getfirebug.com/wiki/index.php/Console_API#console.log.28object.5B.2C_object.2C_....5D.29]
> for the API that we'd like to support.
> Since we will always be dumping just text strings, not HTML, in Cordova
> loging devices, it doesn't make too much sense to do the {{%c}} style
> formatting at all (replace those with ""), and the object hyperlink {{%o}}
> can be rendered as a {JSON.stringify()} result (as can {{%d}}, {{%i}}, and
> {{%f}} - at least as a cheap hack).
> Node.js's
> {{[util.format()|http://nodejs.org/docs/latest/api/util.html#util_util_format]}},
> which is used by it's {{console.log()}} et al, supports 2 additional
> formatting chars: {{%j}} and {{%%}}. Makes sense to add those ones also.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira