Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-4854

iOS Simulator: console ignores log level during build

    Details

    • Story Points:
      5

      Description

      iOS Simulator: console ignores log level during build.

      Test Steps:

      1. Create Alloy project.
      2. Run in iPhone Simulator with log level set to info.

      Result:

      Trace and Debug log to console.

      See screenshot and log.

      Sample Code:

      var win = Ti.UI.createWindow({
      	backgroundColor : 'blue'
      });
       
      var button = Ti.UI.createButton({
      	title : 'click',
      	top : '40%',
      	bottom : '40%',
      	left : '30%',
      	right : '30%'
      });
       
      button.addEventListener('click', function() {
      	console.log('console.log()');
      	console.log(['arg0', 'arg1', 'arg2']);
      	console.debug('console.debug()');
      	console.debug(['arg0', 'arg1', 'arg2']);
      	console.info('console.info()');
      	console.info(['arg0', 'arg1', 'arg2']);
      	console.warn('console.warn()');
      	console.warn(['arg0', 'arg1', 'arg2']);
      	console.error('console.error()');
      	console.error(['arg0', 'arg1', 'arg2']);
      	Ti.API.trace('Ti.API.trace()');
      	Ti.API.trace(['arg0', 'arg1', 'arg2']);
      	Ti.API.debug('Ti.API.debug()');
      	Ti.API.debug(['arg0', 'arg1', 'arg2']);
      	Ti.API.info('Ti.API.info()');
      	Ti.API.info(['arg0', 'arg1', 'arg2']);
      	Ti.API.warn('Ti.API.warn()');
      	Ti.API.warn(['arg0', 'arg1', 'arg2']);
      	Ti.API.error('Ti.API.error()');
      	Ti.API.error(['arg0', 'arg1', 'arg2']);
      	Ti.API.log('TRACE', 'Ti.API.log(TRACE)');
      	Ti.API.log('TRACE', ['arg0', 'arg1', 'arg2']);
      	Ti.API.log('DEBUG', 'Ti.API.log(DEBUG)');
      	Ti.API.log('DEBUG', ['arg0', 'arg1', 'arg2']);
      	Ti.API.log('INFO', 'Ti.API.log(INFO)');
      	Ti.API.log('INFO', ['arg0', 'arg1', 'arg2']);
      	Ti.API.log('WARN', 'Ti.API.log(WARN)');
      	Ti.API.log('WARN', ['arg0', 'arg1', 'arg2']);
      	Ti.API.log('ERROR', 'Ti.API.log(ERROR)');
      	Ti.API.log('ERROR', ['arg0', 'arg1', 'arg2']);
      	Ti.API.log('LOG', 'Ti.API.log(LOG)');
      	Ti.API.log('LOG', ['arg0', 'arg1', 'arg2']);
      	switch(Ti.Platform.osname) {
      		case 'ipad':
      		case 'iphone': {
      			Ti.API.timestamp('Ti.API.timestamp()');
      			Ti.API.timestamp(['arg0', 'arg1', 'arg2']);
      		}
      	}
      });
       
      win.add(button);
       
      win.open(); 
      

        Attachments

        1. android-console.png
          android-console.png
          135 kB
        2. classic-console-ios.txt
          200 kB
        3. console.png
          console.png
          344 kB
        4. console-log.txt
          200 kB

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: