Example: Log messages into different categories
By default, unsourced log messages get assigned to a "global" bucket.
Logger Widget :: Writing LogsThe following examples demonstrate how to assign different categories and sources to your log messages.
By default, unsourced log messages get assigned to a "global" bucket.
myBucketYou can assign a source to a log message by passing it in as
the third argument to YAHOO.log().
MyClassIf you plan to assign many log messages to the same source (such as from a class), it may be easier to write log messages from a LogWriter instance.