Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6299] iOS: Ti.API.log does not log to console in the iOS simulator when passed a previously undefined error type as the first argument

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-04-18T16:42:12.000+0000
Affected Version/sRelease 1.7.2, Release 1.7.5, Release 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsparity, tbs-1.9.0
ReporterDustin Hyde
AssigneeMarshall Culpepper
Created2011-11-23T15:20:40.000+0000
Updated2014-06-19T12:44:43.000+0000

Description

When Ti.API.log is called with two arguments (the first being a previously undefined custom error type, as opposed to: warn, error, etc.) using any iOS simulator results in no log output being printed to the console. Steps to Reproduce: 1. Run this line in a new app:
Ti.API.log("CUSTOM", "Log Message");
Expected Result: [CUSTOM] Log Message < should print to the console. Actual Result: Nothing from the log function prints to the console. Note: Custom error messages using this function call work in all iOS devices.

Comments

  1. Don Thorp 2011-12-01

    Ti.API.log takes a defined set of values, it's not freeform.
  2. Dustin Hyde 2011-12-02

    Ti.API.log takes custom values on Android.
  3. Dustin Hyde 2011-12-02

    Ti.API.log takes custom values on iOS devices.
  4. Stephen Tramer 2011-12-02

    This is a valid bug. If this behavior is supported on devices but not simulator there is an issue.
  5. Dustin Hyde 2012-04-18

    Closing as Cannot Reproduce. I've tested this in the current environment and the original environment and cannot reproduce. There may have been a conflicting setting with the studio console filters (i.e., they were set to filter out info level logs) during the logging of this bug. SDK: 1.7.5, 1.8.0.1, 1.8.2, 2.0.0.GA, 2.0.1.GA2, 2.0.2.v20120418121806 Studio: 2.0.2.201204171552, 2.0.1, 2.0.0, 1.0.9, 1.0.7 OS: Snow Leopard Devices Tested: iPhone Simulator 5.0

JSON Source