{ "id": "102529", "key": "TIMOB-11236", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-10-02T18:52:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:27.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Ti.API.info() and other log functions all log as in Xcode console.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code on device:\r\n\r\n{code}\r\nalert('SESSION ID: ' + Ti.App.sessionId); \r\nTi.API.error('SESSION ID: ' + Ti.App.sessionId); \r\nTi.API.trace('1A. TRACE'); \r\nTi.API.log('TRACE', '1B. TRACE'); \r\nTi.API.debug('2A. DEBUG'); \r\nTi.API.log('DEBUG', '2B. DEBUG'); \r\nTi.API.info('3A. INFO'); \r\nTi.API.log('INFO', '3B. INFO'); \r\nTi.API.warn('4A. WARN'); \r\nTi.API.log('WARN', '4B. WARN'); \r\nTi.API.error('5A. ERROR'); \r\nTi.API.log('ERROR', '5B. ERROR'); \r\nTi.API.log('CUSTOM', 'CUSTOM');\r\n{code}\r\n\r\n2. Check Xcode console.\r\n\r\nActual Result:\r\n\r\nAll logs are level. See attached log or below.\r\n\r\nXcode console:\r\n\r\n{code}\r\nOct 1 15:50:04 unknown MyProject[489] : [ERROR] SESSION ID: 28B4CB38-09F4-4ED4-BB3C-9D246AA5DD30\r\nOct 1 15:50:04 unknown MyProject[489] : [TRACE] 1A. TRACE\r\nOct 1 15:50:04 unknown MyProject[489] : [TRACE] 1B. TRACE\r\nOct 1 15:50:04 unknown MyProject[489] : [DEBUG] 2A. DEBUG\r\nOct 1 15:50:04 unknown MyProject[489] : [DEBUG] 2B. DEBUG\r\nOct 1 15:50:04 unknown MyProject[489] : [INFO] 3A. INFO\r\nOct 1 15:50:04 unknown MyProject[489] : [INFO] 3B. INFO\r\nOct 1 15:50:04 unknown MyProject[489] : [WARN] 4A. WARN\r\nOct 1 15:50:04 unknown MyProject[489] : [WARN] 4B. WARN\r\nOct 1 15:50:04 unknown MyProject[489] : [ERROR] 5A. ERROR\r\nOct 1 15:50:04 unknown MyProject[489] : [ERROR] 5B. ERROR\r\nOct 1 15:50:04 unknown MyProject[489] : [CUSTOM] CUSTOM\r\n{code}\r\n\r\nExpected Result:\r\n\r\nLogs should either be or map to the corresponding titanium log type (i.e., Ti.API.warn() maps to ).", "attachment": [ { "id": "32213", "filename": "Xcode Console Log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-02T18:52:11.000+0000", "size": 867, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Titanium SDK logs all print at warning level in Xcode console", "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 SDK: 2.1.2.GA, 3.0.0.v20121002103353\r\nTitanium Studio: 2.1.2, 3.0.0.201210012124\r\nOS: Mountain Lion 10.8.2\r\nXcode: 4.5\r\nDevice: iPhone5 6.0, iPod 4.3.3", "comment": { "comments": [ { "id": "394301", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Confirmed with Titanium SDK master (6.1.0) + Xcode 7.3.1 + iOS 9.3.4 device.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T21:56:32.000+0000", "updated": "2016-08-24T21:56:32.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }