Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1023

cordova.logger is broken on 1.9.0 - won't log output to window console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.9.0
    • None
    • Cordova (Cleaver setup) 1.9.0
      Weinre (Latest from github) 2.0-PRE

    Description

      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!

      Attachments

        Activity

          People

            pmuellr Patrick Mueller
            mgcrea Olivier Louvignes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: