import mx.logging.Log;
import mx.logging.ILogger;
private var myLogger:ILogger = Log.getLogger("buttonEvents");
private function logEvent(event:MouseEvent):void {
myLogger.debug("LoggingButton " + event.target.id + " was clicked");
}