Software Archive
Read-only legacy content
17061 Discussions

console.log not working in new app

Geoff_at_CFM
Beginner
380 Views

I created a new app, with today's version (Sorry where do I find the XDK version number?) using App Designer, Ionic/Angular, and console.log is not outputting anything to the debug console.

Is there a switch to enable this somewhere?

If I enable ...

app.LOG = app.LOG || true ;

...then I get logging from init-app . js but not from my app . js

 

0 Kudos
2 Replies
Geoff_at_CFM
Beginner
380 Views

Created another app an it seems to be working there, so must be my error somewhere??

0 Kudos
PaulF_IntelCorp
Employee
380 Views

Nothing special required to make console.log work. That bit you found in init-app.js is specific to that file, just a very simple redirection of console.log messages that make it easier to turn them on and off for that file. You can use whatever technique you prefer for logging.

0 Kudos
Reply