Catches Titanium Logs. Currently focused only TiExceptions.
The modules/zip files are in the repository. Add it to your project like you would any other native module.
Require the module with the following code:
var Logger = require("yy.logcatcher");
Logger.addEventListener('error',function(e){
/*
* Do what you like with the data.
*/
});
- backtrace
- sourceId
- name
- message
- line
- message
- lineOffset
- line
- title
- lineSource
- sourceName
Currently this is only for Android (a.k.a. logcat)
var logcat_output = Logger.getDeviceLogs();
alert(logcat_output);
- Get Device Logs (iOS)
- Listen for all logs types (not just Titanium Exceptions)