The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 50 more by this user. Created: 08/5/12
Last CDN Push: 08/15/12
Build Tag: gallery-2012.08.15-20-00
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.1
Free for use.
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
});
All code on this site is licensed under the BSD License unless stated otherwise.