Titanium_logger is a project mainly written in JavaScript, it's free.
Remote Logger for Titanium Mobile applications using Ruby's EventMachine
This is a remote logging server and client code for Titanium applications. The idea is inspired from http://cloudebug.com. I needed a better tool so I built Titanium Logger.
Essentially from within your iPhone app (running within the Simulator or the actual device), you can see the log messages in real-time via the Web Console. And you can also push code directly to any connected devices to help debugging your app.
Download the server script: server
Install the required gems:
gem install em-websocket # or with sudo gem install em-websocke
gem install sinatra # or with sudo gem install sinatra
gem install thin # or with sudo gem install thin
chmod the server file to +x and run it, or run with ruby
./server # or ruby server
if everything goes correctly, you should see something like this ...
== Sinatra/1.0 has taken the stage on 8486 for development with backup from Thin
>> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:8486, CTRL+C to stop
==================
Web Console locates at: 0.0.0.0:8486
Logging Server locates at: 0.0.0.0:8484
==================
download the client script and put it in your Titanium's Resources folder: logger.js
at the top of your app.js, put
var logger = require('path/to/logger').logger('localhost', 8484);
Since the logger.js is written as a CommonJS module, you don't need to put the .js extension.
anywhere you want to log remotely, just use
logger.log("this is a test message");
Object passed to the log() method will be serialized to a string with JSON.stringify()