YUI.add("yui-log-nodejs",function(o,e){var s=require(process.binding("natives").util?"util":"sys"),r=!1;try{r=require("stdio").isStderrATTY()}catch(i){r=!0}o.config.useColor=r,o.consoleColor=function(o,e){return this.config.useColor?"["+(e=e||"32")+"m"+o+"[0m":o},o.config.logFn||(o.config.logFn=function(o,e,r){var i,n;if(this.id&&this.id,e=e||"info",r=r?this.consoleColor(" ("+r.toLowerCase()+"):",35):"","object"==typeof(o=null===o?"null":o)||o instanceof Array)try{o=o.tagName||o._yuid||o._query?o.toString():s.inspect(o)}catch(t){}switch(i="37;40",n=o?"":31,(e+="").toLowerCase()){case"error":i=n=31;break;case"warn":i=33;break;case"debug":i=34}"string"==typeof o&&o&&-1!==o.indexOf("\n")&&(o="\n"+o),s.error(this.consoleColor(e.toLowerCase()+":",i)+r+" "+this.consoleColor(o,n))})},"patched-v3.18.7");