define(["Ti/_/Evented","Ti/_/lang"],function(n,o){var e,r={},t=window,i=t.console,a=0,s=["debug","trace","error","fatal","critical","notice","warn","info"];void 0===i&&(i=t.console={}),s.forEach(function(n){i[n]||(i[n]="log"in i?function(){var o=Array.apply({},arguments);o.unshift(n+":"),i.log(o.join(" "))}:function(){})}),i.trace=0;for(;9>a;a++)!function(n){var i=e=console[n]?n:e;r[n]=function(){var e="["+n.toUpperCase()+"] "+o.toArray(arguments).map(function(n){return require.is(n,"Object")?n.hasOwnProperty("toString")?n.toString():JSON.stringify(n):null===n?"null":void 0===n?"undefined":n}).join(" ");t.hasWP8Extensions?require.sendNativeMessage("l",e):console[i](e)}}(s[a]);return r.log=function(){var n=o.toArray(arguments),e=~s.indexOf((""+n[0]).toLowerCase())&&n.shift().toLowerCase();r[e||"info"].apply(this,n)},o.setObject("Ti.API",n,r)});