Logger Widget :: Reading Logs

Default LogReader Example

With just a few lines of code, you can put a LogReader on any web page that displays log messages built into the YUI Library or custom log messages that you can insert into your own code. This example takes advantage of the YUI Library's Drag and Drop utility to make the LogReader draggable.

(not supported in Opera, Safari)

Hide All LogReaders || Show All LogReaders

Disable Output to Firebug || Enable Output to Firebug

Sample Code

CSS:


    No CSS styles were defined.

    

Markup:


    No markup was defined

    

JavaScript:


    myLogReader1 = new YAHOO.widget.LogReader();

    myLogReader2 = new YAHOO.widget.LogReader();

    myLogReader2.newestOnTop = false;

    myLogReader2.setTitle("Logger Console: Oldest > on > Top!");