Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9306] Blackberry: add a universal logging mechanism for tibb

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-29T10:42:51.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-08 BB, BB Preview 3
ComponentsBlackBerry
Labelsn/a
ReporterJean-Philippe Lemieux
AssigneeJean-Philippe Lemieux
Created2012-05-30T07:31:17.000+0000
Updated2017-03-08T18:13:33.000+0000

Description

Need to add a universal logger to the framework. May use exceptions and stop the app in debug mode and only log in release mode. Also go over all existing qDebug and printf to update them to use the new logger. The logger will also need to do some locking to ensure that logging from concurrent threads doesn't result in logs cut and merged in the middle.

Comments

  1. David Lifshitz 2012-06-20

    Notes from JP: - thread safety - use of a tag (ERROR, DEBUG, etc) - function name + line number - actual logger should be in the native implementation - logger should be in the native side and retrievable via the factoryObject, then the Ti will write to it, so the interface needs to be generic to allow for other native implementations - Alex already created a macro that uses qDebug underneath Also, some guy on the internet says qDebug isn't thread safe, but need to check more. There's also possibly an ndk logging mechanism since there is already some sort of log.
  2. David Lifshitz 2012-06-20

    I saw a suggestion to put the logging in its own thread.
  3. David Lifshitz 2012-06-25

    https://github.com/Macadamian/titanium_mobile/pull/85
  4. Lee Morris 2017-03-08

    Closing ticket as resolved.

JSON Source