Community Questions & Answers
Printing a javascript object to the log
Hello, I'd like to print a javascript object to the log. I'm using the mobile development kit. The only thing I could think of (that didn't work) was: ~~~ Ti.API.info(Ti.API.print(someObject)); ~~~ Thanks
Getting the path to current JS file
Hello, I want to create a function using the CommonJS approach which is going to act as a logger. Within that I want to get the current file, i.e. the JS which makes the call. how's this possible? /common/lib.js ~~~ exports.logger = function(e) { var...
Log4Titanium? Anyone created an implementation?
I come from the Java world and am used to Log4J... I understand that we can use the titanium when phone is connected but I'm interested in creating a logger that the phone could log to and then if a user had an issue they could email me the log (file or...
Better Logging with Titanium
Hey Everyone, I've been working on a better way to log into the Titanium console. I thought I'll share my knowledge and code so far for your use. And hopefully you'll help me improve this logger. Basically, I wanted to have more information about print...
Ti.API.info not working in mobile 1.6.2
I upgraded to xcode 4.0.2, IOS 4.3 and I have Titainium SDK 1.6.2. Ti.API.info is not working, and is making debugging a real pain. I tried reinstalling Titainium 1.2.2. I tried clearing my build folder for a full rebuild. I tried restarting...
Set Titanium Mobile Log Level
Is there a way to set the log level for Titanium? I want to leave in some of the debugging loggers that i have (Ti.API.info, error, warn, etc.) but i don't want them showing up when I release the app. Is there a flag i can set globally to turn the log...
info : logger fix for IOS 4.0.2
The last logger fix (Ti.API.info) (link below) only trapped 4.0.1, so if you just installed the latest 4.0.2 iOS, it will not work. Make sure you redownload the file and change the lines (52,56) where it says 4.0.1 to 4.0.2 and patch it again, otherwise,...
1.4 sdk do not display the log message.
I download the 1.4 sdk, use it with iphone sdk 4.0 (not 4.01),but it did not display the log message, I change the logger.py simulator's dir from 4.0.1 to 4.0, still display nothing.but the 1.3 sdk is all ok.
Showing 1-8 of 8