console

Console & log output functions Put something to log with log levels depending on method. In case of GUI server do echo to GUI log (if enabled). In case of command line - echo to stdout.

Do not create this class directly - use global console already created by UB.

 console.log('%s is a %s usually with weight less then %dgr', 'apple', 'fruit', 100);
 //Will output "apple is a fruit usually with weight less then 100gr"
 console.log('apple', 'fruit', 100);
 //will output "apple fruit 100"
 console.debug('something');
 // will output to log only in "Debug" build (UBD.exe)

Arguments, passed to console output functions are transformed to string using util.format call.

Classes

Console