Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6203] Android: Expose a way to hook into logging API.

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-18T15:00:11.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8
ReporterIngo Muschenetz
AssigneeIngo Muschenetz
Created2011-11-16T11:17:16.000+0000
Updated2014-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.

Comments

  1. Josh Roesslein 2011-11-16

    [PR 728](https://github.com/appcelerator/titanium_mobile/pull/728)
  2. Josh Roesslein 2011-11-17

    To test this just make sure logging still works on both V8 and Rhino.
  3. Natalie Huynh 2012-02-08

    Tested with KS > Platform > Logging on Nexus S 2.2.2 with rhino/v8 1.9.0.v20120207171634

JSON Source