Log.loginfo() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example creates a new Log object, passes it to a new WebService object, and
handles the log messages, using
import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log(Log.BRIEF, "myLog");
// Passes the Log object to the web service.
myWebService = new WebService(wsdlURI, myWebSrvcLog);
// Handles incoming log messages.
myWebSrvcLog.onLog = function(message : String) : Void
{
trace("A Log Event Occurred At This Time: "+ this.getDateString());
}

Log.logInfo()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myWebSrvcLog.logInfo(myMessageString)
Parameters
A message of type String that you want to appear in the resulting log event message.
msg
A level to indicate the category of information that you want to record in the log.
level
Four log levels are available:
The log records primary life-cycle event and error notifications. This is the
Log.BRIEF
default value.
The log records all life-cycle event and error notifications.
Log.VERBOSE
The log records metrics and fine-grained events and errors.
Log.DEBUG
The log records nothing. Can be used to temporarily turn off
Log.NONE
events.
Returns
Nothing.
1418
Web service classes (Flash Professional only)
Log.getDateString()
to get the time of the log.
Log.onLog

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents