{ "id": "159902", "key": "TIMOB-23295", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "2016-04-29T18:12:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-5.3.0" ], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51525", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159701", "key": "TIMOB-23237", "fields": { "summary": "Windows: Inconsistencies in Ti.API.log", "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": null, "updated": "2018-02-28T19:55:43.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "While addressing TIMOB-23237 it was found that there were inconsistencies in Ti.API.log between all platforms. For Android to achieve parity with Windows / iOS, custom log messages need to be ignored. \r\n\r\nh2. TEST CODE:\r\n{code:java}\r\nTi.API.log('meh','I am default log');\r\n \r\nTi.API.error('logging to change other Ti.API.log statements');\r\n \r\nTi.API.log('error','I am error from log');\r\nTi.API.log('debug', 'I am debug from log');\r\nTi.API.log('info', 'I am info from log');\r\nTi.API.log('trace', 'I am trace from log');\r\nTi.API.log('warn', 'I am warn from log');\r\n{code}\r\n\r\n*Logging on Windows Platform:*\r\n{code:java}\r\n[ERROR] : logging to change other Ti.API.log statements\r\n[ERROR] : I am error from log\r\n[DEBUG] : I am debug from log\r\n[INFO] : I am info from log\r\n[TRACE] : I am trace from log\r\n[WARN] : I am warn from log\r\n{code}\r\n\r\n*Logging on Android Platform:*\r\n{code:java}\r\n[INFO] [meh] I am default log\r\n[ERROR] logging to change other Ti.API.log statements\r\n[ERROR] I am error from log\r\n[INFO] I am info from log\r\n[WARN] I am warn from log\r\n{code}\r\n\r\nh2. Steps to Reproduce:\r\n1. Create a Classic Titanium application.\r\n2. Apply test code to app.js\r\n3. Run app to Android device / emulator.\r\n4. Observe console and compare returned log messages to Windows Platform.\r\n\r\nh2. Actual Result:\r\n\r\nCustom log-level messages are printed on the Android Platform.\r\n\r\nh2. Expected Result\r\n\r\nCustom log-level messages should be ignored on the Android Platform.", "attachment": [], "flagged": false, "summary": "Android: parity in Ti.API.log with iOS / Windows", "creator": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "environment": "Windows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.6.0.201604290815\r\nTi SDK: 5.3.0.v20160429083357\r\nAppc NPM: 4.2.5-3\r\nAppc Core: 5.3.0-40\r\nNode: v4.4.2", "comment": { "comments": [ { "id": "397848", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Reading the comments in TIMOB-23237, iOS and Windows Phones print the custom debug-level in upper-case brackets ({{ [INFO] [MEH] My log}}). So I'm wondering if the demo-logs above are still valid and whether we want to remove them or align them to iOS and Windows - which show the custom log.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-02T15:12:34.000+0000", "updated": "2016-10-02T15:12:34.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }