Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7624] Android: Ti.API - enable logging methods to accept either an array of strings or a string

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-26T07:22:27.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sSprint 2012-13 Core, Release 3.0.0
ComponentsAndroid
Labelscore, module_api, parity, qe-testadded
ReporterPaul Dowsett
AssigneeNeeraj Gupta
Created2012-02-10T18:56:37.000+0000
Updated2013-06-19T06:53:14.000+0000

Description

Problem

To bring parity with iOS to the [Titanium.API](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.API-module) logging methods, enable them to accept arrays of strings in addition to the existing string arguments.

Comments

  1. Bill Dawson 2012-05-21

    On hold because of ongoing talks regarding full support of console() spec.
  2. Stephen Tramer 2012-05-21

    Relates to console.* support depending on how ticket discussion is resolved.
  3. Stephen Tramer 2012-06-22

    Testing

    ---- app.js:
       Ti.API.info('yo', 'word');
       Ti.API.debug('durp');
       Ti.API.warn('foo', 'bar', 'baz');
       Ti.API.log('level', 'message', 'goes', 'here');
       Ti.API.info();
       
    Result (in logcat output):
       I/TiAPI   ( 1347):  yo word
       D/TiAPI   ( 1347):  durp
       W/TiAPI   ( 1347):  foo bar baz
       I/TiAPI   ( 1347): [level]  message goes here
       
    Note that the PID will be different across test output.
  4. Shyam Bhadauria 2012-08-16

    Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120815194913 Tested with Titanium  Studio: 2.1.1.201207271312 Device - Samsung GALAXY Note Android 2.3.6 Machine OS - MAC 10.7.3

JSON Source