Skip to content

Instantly share code, notes, and snippets.

@lsmith
Created October 3, 2009 21:30
Show Gist options
  • Select an option

  • Save lsmith/200892 to your computer and use it in GitHub Desktop.

Select an option

Save lsmith/200892 to your computer and use it in GitHub Desktop.
// How to snoop on log statements from another YUI instance
YUI().use('event', function (Y) {
Y.Global.on('yui:log', function (msg, cat, src) {
// You'll need to escape msg if you want to display it
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment