User Guide
Web service classes (Flash Professional only) 843
Callback summary for the Log object
The following table lists the callback of the Log object.
Constructor for the Log class
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myWebSrvcLog = new Log([logLevel] [, logName]);
Parameters
logLevel
A level to indicate the category of information you want to record in the log. Three
log levels are available:
• Log.BRIEF The log records primary life-cycle event and error notifications. This is the
default value.
• Log.VERBOSE The log records all life-cycle event and error notifications.
• Log.DEBUG The log records metrics and fine-grained events and errors.
logName Optional name that is included with each log message. If you are using multiple Log
objects, you can use the log name to determine which log recorded a given message.
Returns
Nothing.
Description
Constructor; creates a Log object. After you create the Log object, you can pass it to a web service
to get messages.
Example
You can call the new Log constructor to return a Log object to pass to your web service:
// creates a new log object
myWebSrvcLog = new Log();
myWebSrvcLog.onLog = function(txt)
{
myTrace(txt)
}
You then pass this Log object as a parameter to the WebService constructor:
myWebSrvc = new WebService("http://www.myco.com/info.wsdl", myWebSrvcLog);
Callback Description
Log.onLog() Called by Flash Player when a log message is sent to a log file.