John Lindal![]()
Provides functions for adding filters to the stream of messages sent to Y.log().
Example of filtering on log levels.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.15-20-00'
}).use('gallery-log-filter', function(Y)
{
Y.LogFilter.addLevelFilter(['error','warn']);
Y.log('some error', 'error'); // printed
Y.log('some debug', 'debug'); // not printed
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info