GregJohnson
Posts: 0
Joined: Sun Feb 05, 2012 9:39 pm

console loging

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

console loging

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

GregJohnson
Posts: 0
Joined: Sun Feb 05, 2012 9:39 pm

console loging

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.

Hineynu
Posts: 0
Joined: Fri Feb 10, 2012 4:37 am

console loging

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?

GregJohnson
Posts: 0
Joined: Sun Feb 05, 2012 9:39 pm

console loging

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

console loging

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

dudi peretz
Posts: 0
Joined: Wed Jun 26, 2013 8:15 am

console loging

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

console loging

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

Return to “Issues”