incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (JIRA)" <>
Subject [jira] [Created] (CB-634) need an sprintf implementation in utils
Date Thu, 03 May 2012 17:22:48 GMT
Patrick Mueller created CB-634:

             Summary: need an sprintf implementation in utils
                 Key: CB-634
             Project: Apache Callback
          Issue Type: New Feature
          Components: CordovaJS
            Reporter: Patrick Mueller
            Assignee: Filip Maj

for the new upcoming/enhanced logging and console capabilities, we need to do some sprintf-like
processing.  See [FireBug's console.log() API|]
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()|]}},
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:!default.jspa
For more information on JIRA, see:


View raw message