Example: Logger - Reading and Writing Basic Logs (YUI Library)

# Logger Widget :: Reading and Writing Basic Logs

### Default LogReader Example

With just a few lines of code, you can put a LogReader on any web page to display log messages written out via `YAHOO.log()`. By default, the LogReader will also look for the YUI Library's Drag and Drop utility to make the LogReader automatically draggable.

Click here to log a simple message.

### Sample Code

// A single line of JavaScript can get you reading logs... var myLogReader = new YAHOO.widget.LogReader(); // ...and writing logs YAHOO.log("This is a simple log message.");