User Guide
1422 Web service classes (Flash Professional only)
Description
Property; a string identifying the Log instance; included in every Log.onLog event message.
This property can be both get and set. It is usually set when creating a new Log object. See
“Log class (Flash Professional only)” on page 1414.)
Example
The following example creates a new Log object with a Log.level property of Log.VERBOSE
and a name of “myLog”
. The current Log.name property is traced. Then the Log object’s
Log.name property is set to "myNewLogName".
import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log(Log.VERBOSE, "myLog");
trace("myWebSrvcLog.level: "+ myWebSrvcLog.level);
// Sets a new name for the Log object.
myWebSrvcLog.name = "myNewLogName";
trace("myWebSrvcLog.name: " + myWebSrvcLog.name);
Log.onLog()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myWebSrvcLog.onLog = function(message)
Parameters
message The log message passed to the handler. For example:
“7/30 15:22:43 [INFO] SOAP: Decoding PendingCall response”
Returns
Nothing.
Description
Callback function; called by Flash Player when a log message is sent to a log file. This function
is a good place to put code that records or displays the log messages, such as a
trace
command. (For information about the structure of the log, see “Log class (Flash Professional
only)” on page 1414.)