Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbankier/tilogcatcher
Catches Titanium Logs
https://github.com/dbankier/tilogcatcher
Last synced: about 2 months ago
JSON representation
Catches Titanium Logs
- Host: GitHub
- URL: https://github.com/dbankier/tilogcatcher
- Owner: dbankier
- License: mit
- Created: 2014-06-18T04:19:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T14:35:51.000Z (almost 5 years ago)
- Last Synced: 2024-08-04T07:04:06.297Z (5 months ago)
- Language: Python
- Size: 490 KB
- Stars: 58
- Watchers: 11
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LogCatcher for Titanium
Catches Titanium Logs. Currently focused only TiExceptions.
## Install
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");
~~~## Listen for Titanium Exceptions
~~~
Logger.addEventListener('error',function(e){
/*
* Do what you like with the data.
*/
});
~~~### event properties
#### ios
* backtrace
* sourceId
* name
* message
* line#### android
* message
* lineOffset
* line
* title
* lineSource
* sourceName## Get Device Logs
Currently this is only for Android (a.k.a. logcat)
~~~
var logcat_output = Logger.getDeviceLogs();
alert(logcat_output);
~~~## To Do
* Get Device Logs (iOS)
* Listen for all logs types (not just Titanium Exceptions)### Licence: MIT