{ "id": "104176", "key": "TIMOB-11615", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-10-31T21:14:02.000+0000", "created": "2012-10-30T23:54:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "qe-ios100112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22426", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "104181", "key": "TIMOB-11618", "fields": { "summary": "Android: Ti.API.log: function calls with one arg (log level) do not print as the correct log level, and have some format problems", "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": "Low", "id": "4" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T18:16:24.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Ti.API.log console logging calls with one arg (log level) do not print as the correct log level. They all default to [INFO] instead.\r\n\r\nThis does not occur in MobileWeb. This is a parity issue.\r\n\r\nThis is also an inconsistency within the iOS platform because log with two args works as expected, as does calling Ti.API.log() and Ti.API.log('info').\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code:\r\n\r\n{code}\r\nTi.API.log('trace');\r\nTi.API.log('debug');\r\nTi.API.log('warn');\r\nTi.API.log('error');\r\nTi.API.log('log');\r\n{code}\r\n\r\nActual Result:\r\n\r\n{code}\r\n[INFO] trace\r\n[INFO] debug\r\n[INFO] warn\r\n[INFO] error\r\n[INFO] log\r\n{code}\r\n\r\nExpected Result:\r\n\r\n{code}\r\n[TRACE] trace\r\n[DEBUG] debug\r\n[WARN] warn\r\n[ERROR] error\r\n[LOG] log\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.API.log: function calls with one arg (log level) do not print as the correct log level", "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.3.GA, 3.0.0.v20121030114615\r\nTitanium Studio: 3.0.0.201210291448\r\n\r\nTitanium CLI Version: 3.0.11\r\nTitanium CLI Enabled: false\r\n\r\nHost OS: Mac OS X Mountain Lion 10.8.2\r\niOS Devices Tested: iPhone Simulator 6.0", "comment": { "comments": [ { "id": "225699", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "MobileWeb should do what iOS is doing.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T18:13:54.000+0000", "updated": "2012-10-31T18:13:54.000+0000" }, { "id": "225705", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is the correct behavior, if MobileWeb is showing the opposite we need a separate ticket.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T18:25:28.000+0000", "updated": "2012-10-31T18:25:28.000+0000" }, { "id": "225708", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note that though this is the 'correct' behavior, the first argument to this function is supposed to be the log level, so passing in only the log level is expected to result in a message being logged at that level. Currently if there is one argument, it is treated as the second argument and is used to populate the message instead.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T18:57:19.000+0000", "updated": "2012-10-31T18:57:19.000+0000" }, { "id": "225729", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To put this into context, here is a sample output w/code:\n\nCode:\n\n{code}\n/* console */\n\nconsole.debug();\nconsole.debug('console.debug');\nconsole.debug(['console.debug.0', 'console.debug.1']);\n\n/* Ti.API */\n\nTi.API.debug();\nTi.API.debug('Ti.API.debug');\nTi.API.debug(['Ti.API.debug.0', 'Ti.API.debug.1']);\n\nTi.API.log('debug');\nTi.API.log('debug', 'Ti.API.log.debug');\nTi.API.log('debug', ['Ti.API.debug.0', 'Ti.API.debug.1']);\n{code}\n\nOutput:\n\n{code}\n[DEBUG] (null)\n[DEBUG] console.debug\n[DEBUG] (\n \"console.debug.0\",\n \"console.debug.1\"\n)\n[DEBUG] (null)\n[DEBUG] Ti.API.debug\n[DEBUG] (\n \"Ti.API.debug.0\",\n \"Ti.API.debug.1\"\n)\n[INFO] debug\n[DEBUG] Ti.API.log.debug\n[DEBUG] (\n \"Ti.API.debug.0\",\n \"Ti.API.debug.1\"\n)\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T21:13:30.000+0000", "updated": "2012-10-31T21:13:30.000+0000" }, { "id": "414261", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T18:16:24.000+0000", "updated": "2017-03-21T18:16:24.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }