
['info','error','debug','trace','repl','warn','pass','fail','test'].forEach(function(level){
  exports[level] = function(message) {
    require("/api/TiShadow").emitLog({
      level: level.toUpperCase(),
      message: message
    });
  };
});


@@ -240,8 +240,108 @@
 %7D;%0A%7D);%0A%0A
+exports.log = function(level,message) %7B%0A  if (exports%5Blevel%5D) %7B%0A    exports%5Blevel%5D(message);%0A  %7D%0A%7D%0A%0A

Support to re-route Ti.API.log