Log.logDebug()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myWebSrvcLog.logDebug(msg)

Parameters

msg A log message string. The string you provide in this parameter appears as the log message in the resulting log event.

Returns

Nothing.

Description

Function; generates a log message containing msg and the message type indicator of [debug]. This method provides a way to create your own log events with [debug] in the log message, which will be viewable only with a log level setting of Log.DEBUG.

The following string is an examples of a debug level log message generated by Log.logDebug():

12/18 23:20:17 [DEBUG] myLog: My log message

Example

The following example creates a new Log object. An onLog event with a message indicating the start of a new log is generated by calling Log.logDebug().

import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log(Log.DEBUG, "myLog");

// Handles incoming log messages.
myWebSrvcLog.onLog = function(message : String) : Void
{
    trace(message);
}
// Generates a log message with a log level of Log.DEBUG.
myWebSrvcLog.logDebug("New Log Started");
// Passes the Log object to the web service.
myWebService = new WebService(wsdlURI, myWebSrvcLog);

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00003704.html