Logger Widget :: Writing Logs

Writing Log Messages From Your Code

In this example, we instanatiate a simple LogReader to display log messages. We use the global method YAHOO.log() to write simple messages, and we also instantiate a LogWriter instance to write messages from a custom-named source.

(not supported in Opera, Safari)

Sample Code