You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Patrick Mueller (JIRA)" <ji...@apache.org> on 2012/05/01 14:53:49 UTC

[jira] [Commented] (CB-613) Fix console.log not sprintf'ing input content

    [ https://issues.apache.org/jira/browse/CB-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265774#comment-13265774 ] 

Patrick Mueller commented on CB-613:
------------------------------------

This should be done as part of 

 * [CB-348 - console object improvements|https://issues.apache.org/jira/browse/CB-348]

                
> Fix console.log not sprintf'ing input content
> ---------------------------------------------
>
>                 Key: CB-613
>                 URL: https://issues.apache.org/jira/browse/CB-613
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: iOS
>            Reporter: Olivier Louvignes
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: debugging
>
> One thing that could be improved/fixed is that XCode console handling fails to do a sprintf on its input :
> console.log("Just fetched %s-item from endpoint=%o", itemCount, endpoint);
> Does output "Just fetched %s-item from endpoint=%o" in XCode while it could probably have the sprintf :
> "Just fetched 12-item from endpoint=[Object]"
> Not perfect but could be really useful for non-scalar vars.
> One probably correct sprintf implementation in javascript (underscore.string lib) : http://epeli.github.com/underscore.string/lib/underscore.string.js
> Regards,

--
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