.yui-skin-sam #c .yui-console {
<
body class="yui-skin-sam">
<
input type="button" id="foo" value="Log foo msg">
<
input type="button" id="info" value="Log info msg">
<
input type="button" id="warn" value="Log warn msg">
<
input type="button" id="error" value="Log error msg">
<
button type="button" id="hide">Hide</
button>
<
button type="button" id="show">Show</
button>
<
button type="button" id="collapse">Collapse</
button>
<
button type="button" id="expand">Expand</
button>
}).use('console',function (Y) {
Y.on('click',function (e) {
Y.log('FOO message '+(++
x.foo),'foo'); },'#foo');
Y.on('click',function (e) {
Y.log('WARN message '+(++
x.warn),'warn'); },'#warn');
Y.on('click',function (e) {
Y.log('ERROR message '+(++
x.error),'error'); },'#error');
Y.log('testing known category','info');
Y.log('testing new category','foo');
Y.log('testing known source','info','global');
Y.log('testing new source','info','bar');
yconsole.log("Test from the console object",'info','Console');