# Logger Widget :: Integrating with YUI Components

### Point to Debug Builds

The debug builds of YUI components call YAHOO.log() to output log messages that can help you integrate and debug code. In this example, the debug builds of the Event Utility and the AutoComplete Widget will output log messages as you interact with the widget.

### Type a state (will output log messages):

#### Sample Code

<body> <script type="text/javascript" src="../../build/yahoo/yahoo.js"></script> <script type="text/javascript" src="../../build/event/event-debug.js"></script> <script type="text/javascript" src="../../build/dom/dom.js"></script> <script type="text/javascript" src="../../build/animation/animation.js"></script> <script type="text/javascript" src="../../build/autocomplete/autocomplete-debug.js"></script> <script type="text/javascript" src="../../build/logger/logger.js"></script> <script type="text/javascript"> var myLogReader = new YAHOO.widget.LogReader(); </script> </body>