In this example, the Console's logSource
configuration is set to Y.Global
, an EventTarget
shared by all YUI instances.
Two YUI instances are created with different configurations and module inclusions. Each YUI instance is configured to request the module-debug.js
version of its modules and dependencies and filter out all but specific log sources using the logInclude
config property.
The universal Console is instantiated and rendered inside the first YUI instance.