Page 1 of 1

console loging

Posted: Fri Feb 10, 2012 3:21 am
by GregJohnson

trying to figure how to use the logging system but can't seem to get it correct. Tried things like Tiggr.Logger.error('test');. suggestions?


console loging

Posted: Fri Feb 10, 2012 4:51 am
by maxkatz

Are you looking for browser's
code
console.log()
/code
?


console loging

Posted: Fri Feb 10, 2012 5:17 am
by GregJohnson

well ya. but reading the documentation it seemed like you guys had done some custom wrapper using the Tiggr class. Though I am beginning to think that only works when on a mobile device and not in FF. I am juggling so many things. Win7 system with bluestacks, ADB SDK, 7.1" Android US tablet, 10.1" Android China tablet, Samsung Transformer cellphone, Nook Color, iPod Touch, Logitech Revu. Getting wires crossed rofl.


console loging

Posted: Fri Feb 10, 2012 6:28 am
by Hineynu

I also read about Trigger.Logger in the api but was not sure how to use it. Is there documentation somewhere? Could you post a one line sample code for the syntax for logging a message in a native mobile app with Logger? How do I view those messages when runningthe app in Android Emulator?


console loging

Posted: Fri Feb 10, 2012 7:10 am
by GregJohnson

I snuck around the downloaded code some, and it looks like they just derived out some stub functions so they can be enhanced later if needed, so just use the semi-standard js console command I think. To view them on Android Emulator you would prob have to use ADB and issue a shell command to logcat to display that console.log file. Or you could get a free android log monitor onto the emulator and switch back and forth.


console loging

Posted: Fri Feb 10, 2012 7:56 pm
by maxkatz

We are in the process of updating our JavaScript API. For now just use the browser's: console.log().


console loging

Posted: Mon Jul 15, 2013 12:58 pm
by dudi peretz

When I invoked the console.log('my message') code, Do u know the location of the log file on Android/iOS where I can find the printing?


console loging

Posted: Mon Jul 15, 2013 3:57 pm
by maxkatz

You would need to use the native SDK (Android/iOS) and run the app in simulator.