[TIMOB-6203] Android: Expose a way to hook into logging API.
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-11-18T15:00:11.000+0000 |
| Affected Version/s | Release 1.8.0.1 |
| Fix Version/s | Sprint 2011-46, Release 1.8.0.1 |
| Components | Android |
| Labels | branch-v8 |
| Reporter | Ingo Muschenetz |
| Assignee | Ingo Muschenetz |
| Created | 2011-11-16T11:17:16.000+0000 |
| Updated | 2014-06-19T12:44:18.000+0000 |
Description
To re-enable debugging we need a way to hook into the API logging methods.
The best approach is probably to add a hook into KrollLogging. V8 does not use this
by default, instead it uses a C API exposed by Android. So when debugging is active, we need
V8 to instead call into Java and use KrollLogging. Rhino should already be using KrollLogging.
[PR 728](https://github.com/appcelerator/titanium_mobile/pull/728)
To test this just make sure logging still works on both V8 and Rhino.
Tested with KS > Platform > Logging on Nexus S 2.2.2 with rhino/v8 1.9.0.v20120207171634