{ "id": "109645", "key": "TIMOB-12719", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "89173", "key": "TIMOB-8424", "fields": { "summary": "Ti API: Define cross platform logging API", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-03-05T01:06:08.000+0000", "created": "2013-02-13T03:39:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "cli-review", "qe-sdk3.0.2", "regression" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "26352", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "109983", "key": "TIMOB-12809", "fields": { "summary": "CLI: iOS log output gets munged", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-03-07T19:22:05.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "CLI: iOS Console output prints out of order.\r\n\r\nRun code in app.js:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'blue'\r\n});\r\n \r\nvar button = Ti.UI.createButton({\r\n title : 'click',\r\n top : '40%',\r\n bottom : '40%',\r\n left : '30%',\r\n right : '30%'\r\n});\r\n \r\nbutton.addEventListener('click', function() {\r\n console.log('console.log()');\r\n console.log(['arg0', 'arg1', 'arg2']);\r\n \r\n console.debug('console.debug()');\r\n console.debug(['arg0', 'arg1', 'arg2']);\r\n \r\n console.info('console.info()');\r\n console.info(['arg0', 'arg1', 'arg2']);\r\n \r\n console.warn('console.warn()');\r\n console.warn(['arg0', 'arg1', 'arg2']);\r\n \r\n console.error('console.error()');\r\n console.error(['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.trace('Ti.API.trace()');\r\n Ti.API.trace(['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.debug('Ti.API.debug([])');\r\n Ti.API.debug(['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.info('Ti.API.info([])');\r\n Ti.API.info(['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.warn('Ti.API.warn([])');\r\n Ti.API.warn(['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.error('Ti.API.error([])');\r\n Ti.API.error(['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.log('TRACE', 'Ti.API.log(TRACE)');\r\n Ti.API.log('TRACE', ['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.log('DEBUG', 'Ti.API.log(DEBUG)');\r\n Ti.API.log('DEBUG', ['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.log('INFO', 'Ti.API.log(INFO)');\r\n Ti.API.log('INFO', ['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.log('WARN', 'Ti.API.log(WARN)');\r\n Ti.API.log('WARN', ['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.log('ERROR', 'Ti.API.log(ERROR)');\r\n Ti.API.log('ERROR', ['arg0', 'arg1', 'arg2']);\r\n \r\n Ti.API.log('LOG', 'Ti.API.log(LOG)');\r\n Ti.API.log('LOG', ['arg0', 'arg1', 'arg2']);\r\n \r\n switch(Ti.Platform.osname)\r\n {\r\n case 'ipad':\r\n case 'iphone':\r\n {\r\n Ti.API.timestamp('Ti.API.timestamp()');\r\n Ti.API.timestamp(['arg0', 'arg1', 'arg2']);\r\n }\r\n }\r\n});\r\n \r\nwin.add(button);\r\nwin.open(); \r\n{code}\r\n\r\nActual Result:\r\n\r\n{code}\r\n[INFO] : console.log()\r\n[DEBUG] : console.debug()\r\n[DEBUG] : (\r\n[INFO] : (\r\n[DEBUG] : arg0,\r\n[INFO] : arg0,\r\n[DEBUG] : arg1,\r\n[INFO] : arg1,\r\n[DEBUG] : arg2\r\n[INFO] : arg2\r\n[DEBUG] : )\r\n[INFO] : )\r\n[INFO] : console.info()\r\n[INFO] : (\r\n[INFO] : arg0,\r\n[INFO] : arg1,\r\n[INFO] : arg2\r\n[INFO] : )\r\n[WARN] : console.warn()\r\n[ERROR] : console.error()\r\n[WARN] : (\r\n[ERROR] : (\r\n[WARN] : arg0,\r\n[ERROR] : arg0,\r\n[ERROR] : arg1,\r\n[WARN] : arg1,\r\n[ERROR] : arg2\r\n[WARN] : arg2\r\n[ERROR] : )\r\n[WARN] : )\r\n[DEBUG] : Ti.API.debug([])\r\n[DEBUG] : (\r\n[TRACE] : Ti.API.trace()\r\n[DEBUG] : arg0,\r\n[TRACE] : (\r\n[DEBUG] : arg1,\r\n[DEBUG] : arg2\r\n[TRACE] : arg0,\r\n[DEBUG] : )\r\n[TRACE] : arg1,\r\n[ERROR] : Ti.API.error([])\r\n[TRACE] : arg2\r\n[ERROR] : (\r\n[TRACE] : )\r\n[ERROR] : arg0,\r\n[ERROR] : arg1,\r\n[INFO] : Ti.API.info([])\r\n[ERROR] : arg2\r\n[INFO] : (\r\n[ERROR] : )\r\n[INFO] : arg0,\r\n[DEBUG] : Ti.API.log(DEBUG)\r\n[INFO] : arg1,\r\n[DEBUG] : (\r\n[INFO] : arg2\r\n[DEBUG] : arg0,\r\n[INFO] : )\r\n[DEBUG] : arg1,\r\n[WARN] : Ti.API.warn([])\r\n[DEBUG] : arg2\r\n[WARN] : (\r\n[DEBUG] : )\r\n[WARN] : arg0,\r\n[WARN] : arg1,\r\n[WARN] : arg2\r\n[WARN] : )\r\n[TRACE] : Ti.API.log(TRACE)\r\n[TRACE] : (\r\n[TRACE] : arg0,\r\n[TRACE] : arg1,\r\n[TRACE] : arg2\r\n[TRACE] : )\r\n[INFO] : Ti.API.log(INFO)\r\n[INFO] : (\r\n[INFO] : arg0,\r\n[INFO] : arg1,\r\n[INFO] : arg2\r\n[INFO] : )\r\n[WARN] : Ti.API.log(WARN)\r\n[WARN] : (\r\n[WARN] : arg0,\r\n[WARN] : arg1,\r\n[WARN] : arg2\r\n[WARN] : )\r\n[ERROR] : Ti.API.log(ERROR)\r\n[ERROR] : (\r\n[ERROR] : arg0,\r\n[ERROR] : arg1,\r\n[ERROR] : arg2\r\n[ERROR] : )\r\n[ERROR] : [LOG] Ti.API.log(LOG)\r\n[ERROR] : [LOG] (\r\n[ERROR] : arg0,\r\n[ERROR] : arg1,\r\n[ERROR] : arg2\r\n[ERROR] : )\r\n[ERROR] : [TIMESTAMP] 382417823.074028 Ti.API.timestamp()\r\n[ERROR] : [TIMESTAMP] 382417823.074065 (\r\n[ERROR] : arg0,\r\n[ERROR] : arg1,\r\n[ERROR] : arg2\r\n[ERROR] : )\r\n{code}\r\n\r\nNote: Colors are correct. Messages print as if they are on different threads.\r\n\r\nWorks in SDK 2.1.4.", "attachment": [], "flagged": false, "summary": "CLI: iOS Console output prints out of order", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.2.201302081641\r\nTitanium SDK: 3.0.2.v20130207164659\r\nTitanium CLI: 3.0.23\r\nOS: 10.8.2\r\nXcode: 4.6\r\niPhone Simulator: 6.1", "comment": { "comments": [ { "id": "240659", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Dupe of TIMOB-12809.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-05T01:06:08.000+0000", "updated": "2013-03-05T01:06:08.000+0000" }, { "id": "241182", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as TIMOB-12809 Duplicate.\n\nVerified correct output with:\nTitanium Studio: 3.0.2.201302191606\nTitanium SDK: 3.1.0.v20130306145654\nTitanium CLI: 3.0.25\nOS: 10.8.2\nXcode: 4.6\niPhone Simulator: 6.1\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T19:21:07.000+0000", "updated": "2013-03-07T19:21:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }