User Guide
1416 Web service classes (Flash Professional only)
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 that you want to record in the log.
Four 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.
■ Log.NONE The log records nothing. Can be used to temporarily turn off Log.onLog
events.
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.
import mx.services.*;
myWebSrvcLog = new Log();
myWebSrvcLog.onLog = function(msg : String) : Void
{
myTrace(txt)
}