[TIMOB-11236] iOS: Titanium SDK logs all print at warning level in Xcode console
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.2, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Dustin Hyde |
Assignee | Unknown |
Created | 2012-10-02T18:52:11.000+0000 |
Updated | 2018-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:
level. See attached log or below.
Xcode console:
or map to the corresponding titanium log type (i.e., Ti.API.warn() maps to ).
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
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 Attachments
File | Date | Size |
---|---|---|
Xcode Console Log.txt | 2012-10-02T18:52:11.000+0000 | 867 |
Confirmed with Titanium SDK master (6.1.0) + Xcode 7.3.1 + iOS 9.3.4 device.