You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/08/27 07:31:58 UTC

[jira] [Updated] (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:all-tabpanel ]

Shazron Abdullah updated CB-613:
--------------------------------

    Component/s:     (was: iOS)
                 Plugin Console
    Environment: iOS

> Fix console.log not sprintf'ing input content
> ---------------------------------------------
>
>                 Key: CB-613
>                 URL: https://issues.apache.org/jira/browse/CB-613
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Console
>         Environment: iOS
>            Reporter: Olivier Louvignes
>            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 was sent by Atlassian JIRA
(v6.2#6252)