Example: Compact Ouput
By default, log messages are printed to the console with a good deal of whitespace for better readability. In this example, verbose output has been disabled so each message gets output on a single line without wrapping.
Sample Code
1 | <body> |
2 | <div id="compact"></div> |
3 | |
4 | <script type="text/javascript"> |
5 | var myCompact = new YAHOO.widget.LogReader("compact", {verboseOutput:false}); |
6 | myCompact.setTitle("Compact Output"); |
7 | </script> |
8 | </body> |
9 | |
view plain | print | ? |