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/07/10 23:44:35 UTC

[jira] [Commented] (CB-1023) cordova.logger is broken on 1.9.0 - won't log output to window console

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

Patrick Mueller commented on CB-1023:
-------------------------------------

I take it you want all the logging in weinre, and not Xcode.

Weird that it works one way in the sim, another way on device.  Sometimes the order in which weinre and cordova are <script src=> included matters.  Wouldn't be different in this case though, right?  Perhaps there's a timing issue.
                
> cordova.logger is broken on 1.9.0 - won't log output to window console
> ----------------------------------------------------------------------
>
>                 Key: CB-1023
>                 URL: https://issues.apache.org/jira/browse/CB-1023
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 1.9.0
>         Environment: Cordova (Cleaver setup) 1.9.0
> Weinre (Latest from github) 2.0-PRE
>            Reporter: Olivier Louvignes
>            Assignee: Patrick Mueller
>              Labels: log
>
> I'm trying to correctly debug an app with weinre using 1.9.0 (cleaver) :
> On the simulator I correctly get no logging to XCode & all the logging to weinre.
> On a remote device (debugging via XCode), I get the logging in XCode & no logging to weinre : However, weinre does work (i can inspect vars, etc.) but the logging is going directly to XCode.
> I tried this :
> cordova.logger.useConsole(true)
> true
> window.console.log('hello')
> undefined
> cordova.logger.useConsole(false)
> false
> window.console.log('hello')
> undefined
> But the loggin still goes to XCode!

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