Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Web service classes > Log.logInfo() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myWebSrvcLog.logInfo(msg)
msg A message of type String that you want to appear in the resulting log event message.
Nothing.
Function; generates a log message set by the msg parameter at a log level set by the level parameter. This method provides a way to create your own log events with any log level.
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.VERBOSE, "myLog");
// Handles incoming log messages.
myWebSrvcLog.onLog = function(message:String):Void {
trace(message);
};
myWebSrvcLog.logInfo(">>>>> New Log Started <<<<<");
// Passes the Log object to the web service.
var wsdlURI:String = "http://www.flash-mx.com/mm/tips/tips.cfc?WSDL";
var myWebService:WebService = 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/00003703.html