37
36
* @param {String} msg The message to log.
38
37
* @param {String} cat The log category for the message. Default
39
38
* categories are "info", "warn", "error", time".
45
44
INSTANCE.log = function(msg, cat, src, silent) {
46
45
var bail, excl, incl, m, f,
49
48
publisher = (Y.fire) ? Y : YUI.Env.globalEvents;
50
49
// suppress log message if the config is off or the event stack
51
50
// or the event call stack contains a consumer of the yui:log event
57
56
if (incl && !(src in incl)) {