Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11236] iOS: Titanium SDK logs all print at warning level in Xcode console

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDustin Hyde
AssigneeUnknown
Created2012-10-02T18:52:11.000+0000
Updated2018-02-28T20:03:27.000+0000

Description

Ti.API.info() and other log functions all log as in Xcode console. Steps to Reproduce: 1. Run code on device:
alert('SESSION ID: ' + Ti.App.sessionId); 
Ti.API.error('SESSION ID: ' + Ti.App.sessionId); 
Ti.API.trace('1A. TRACE'); 
Ti.API.log('TRACE', '1B. TRACE'); 
Ti.API.debug('2A. DEBUG'); 
Ti.API.log('DEBUG', '2B. DEBUG'); 
Ti.API.info('3A. INFO'); 
Ti.API.log('INFO', '3B. INFO'); 
Ti.API.warn('4A. WARN'); 
Ti.API.log('WARN', '4B. WARN'); 
Ti.API.error('5A. ERROR'); 
Ti.API.log('ERROR', '5B. ERROR'); 
Ti.API.log('CUSTOM', 'CUSTOM');
2. Check Xcode console. Actual Result: All logs are level. See attached log or below. Xcode console:
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [ERROR] SESSION ID: 28B4CB38-09F4-4ED4-BB3C-9D246AA5DD30
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [TRACE] 1A. TRACE
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [TRACE] 1B. TRACE
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [DEBUG] 2A. DEBUG
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [DEBUG] 2B. DEBUG
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [INFO] 3A. INFO
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [INFO] 3B. INFO
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [WARN] 4A. WARN
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [WARN] 4B. WARN
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [ERROR] 5A. ERROR
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [ERROR] 5B. ERROR
Oct  1 15:50:04 unknown MyProject[489] <Warning>: [CUSTOM] CUSTOM
Expected Result: Logs should either be or map to the corresponding titanium log type (i.e., Ti.API.warn() maps to ).

Attachments

FileDateSize
Xcode Console Log.txt2012-10-02T18:52:11.000+0000867

Comments

  1. Chris Barber 2016-08-24

    Confirmed with Titanium SDK master (6.1.0) + Xcode 7.3.1 + iOS 9.3.4 device.

JSON Source