<!doctype html>
<html>
<head>
<title>Test Page</title>
#c {
margin-bottom: 1em;
}
</style>
</head>
<body class="yui3-skin-sam">
<div class="markup">
<div id="c"></div>
<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>
<button type="button" id="destroy">Destroy</button>
<button type="button" id="throttle">Throttle</button>
<button type="button" id="limit">Limit cache</button>
</div>
<script type="text/javascript">
YUI({
//useBrowserConsole:false,
//logLevel: 'warn',
//filter: 'debug',
//logInclude : { global: true },
//logExclude : { attribute: true },
filters : {
console: 'raw',
'console-filters': 'debug'
},
base: '/build/'
}).use('console','console-filters', function (Y) {
var x = {
foo : 0,
info : 0,
warn : 0,
error : 0
};
Y.on('click',function (e) { Y.log('INFO message long message that should trigger scroll bars '+(++x.info)); },'#info');
Y.one('#hide').on('click', function () { yconsole.hide(); });
Y.one('#show').on('click', function () { yconsole.show(); });
Y.one('#collapse').on('click', function () { yconsole.collapse(); });
Y.one('#expand').on('click', function () { yconsole.expand(); });
Y.one('#destroy').on('click', function () { yconsole.destroy(); });
Y.one('#throttle').on('click', function () {
for (var i = 0; i < 500; ++i) {
}
});
});
//useBrowserConsole: true,
//verbose : true,
//consoleLimit : 10,
boundingBox: '#c',
//style : 'inline',
logLevel : "Garbage",
newestOnTop : false
});
//Y.log('testing');
Y.log('Standard info message');
});
</script>
</body>
</html>