views:

31

answers:

1

I'm using YUI3 on node.js but I get all these INFO messages.

How do I deactivate them?

+1  A: 

If the YUI instance is configured with debug set to true (the default), any calls to Y.log(..) will be printed to the browser's native console if it has one, and broadcast through the yui:log event.

Disable as follows

Y.config.debug = false;
Arthur Ronald F D Garcia
@ajsie Y instance needs to be available
Arthur Ronald F D Garcia
It doesn't work: http://pastie.org/1180727
never_had_a_name
Btw. it seems that YUI3 don't require jsdom. Is this correct (it says here http://github.com/yui/nodejs-yui3 that it is dependent on it.
never_had_a_name
@ajsie If you want to know how dependency works, prefer to see YUI configurator: http://developer.yahoo.com/yui/3/configurator/
Arthur Ronald F D Garcia
@ajsie I will test debug property and let you know later
Arthur Ronald F D Garcia
@arthur. now i understand more. i'm not using the console module, i think you have misunderstood my situation. here is my code: http://pastie.org/1181938. Run that code with "node file.js" and it will give you the same output as mine with INFO messages i want to deactivate.
never_had_a_name
@ajsie Edit http://jsbin.com/amova3 and let me see the logged info. I do not meet require function used by your sample
Arthur Ronald F D Garcia