[AC-3303] Ti API: log support for multiple arguments
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2012-01-05T09:39:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | tc-more-info |
Reporter | Sindre Sorhus |
Assignee | Shak Hossain |
Created | 2011-10-19T11:07:04.000+0000 |
Updated | 2016-03-08T07:57:43.000+0000 |
Description
Feature Request
Add support for multiple arguments to logging methods.Test case
Ti.API.log({sdf:"df"}, [1,3,5,6], "sdfsdf");
Logs
With the above code, you would see the following result:
Object [1,3,5,6] "sdfsdf"
Also see attached image
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2011-10-19 at 21.03.43.png | 2011-10-19T11:07:04.000+0000 | 11223 |
Thank you for raising this ticket. I am afraid we need all the information listed in the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) in order to accept a ticket. Once this ticket is complete, we can move it to the main project. Thank you
Fixed.
Can someone reopen this?
Sindre Please ensure your requests are consistent. For instance, the example code produces the results you've included. I will escalate this now. Thanks for raising it. Thank you
On second thoughts, I agree with the reasons that I presume Matt marked this as invalid, although he should have provided his reasons. Arguments can be concatenated in Javascript. For example:
Why isn't this sufficient?
Thanks for your input here. Having verified with one of our engineering project leads, the above solution is the recommended approach. I'm closing this ticket now.
Sindre I realise that you are capable of writing this, but a colleague of mine kindly wrote it for you. It's not been tested, but I am sure it's almost there. Cheers