Lines Matching defs:log
2 * Provides console log capability and exposes a custom event for
6 * @submodule yui-log
10 LOGEVENT = 'yui:log',
18 * If the 'debug' config is true, a 'yui:log' event will be
21 * write to the browser console if available. YUI-specific log
23 * JS files. The build system is supposed to remove log statements
26 * @method log
28 * @param {String} msg The message to log.
29 * @param {String} cat The log category for the message. Default
33 * @param {boolean} silent If true, the log event won't fire.
36 INSTANCE.log = function(msg, cat, src, silent) {
41 // suppress log message if the config is off or the event stack
42 // or the event call stack contains a consumer of the yui:log event
61 } else if (typeof console != UNDEFINED && console.log) {
62 f = (cat && console[cat] && (cat in LEVELS)) ? cat : 'log';
91 * minified and raw versions of the YUI files, unlike log statements.
94 * @param {String} msg The message to log.
95 * @param {String} cat The log category for the message. Default
99 * @param {boolean} silent If true, the log event won't fire.
103 return INSTANCE.log.apply(INSTANCE, arguments);