Log.logInfo()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myWebSrvcLog.logInfo(msg)

Parameters

msg A message of type String that you want to appear in the resulting log event message.

Returns

Nothing.

Description

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.

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.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