Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Geoff_at_CFM
Beginner
54 Views

console.log not working in new app

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

 

Tags (2)
0 Kudos
2 Replies
Geoff_at_CFM
Beginner
54 Views

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

PaulF_IntelCorp
Employee
54 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.

Reply