Log class (Flash Professional only)

ActionScript Class Name mx.services.Log

The Log class is part of the mx.services package and is used with the WebService class (see WebService class (Flash Professional only)). For an overview of the classes in the mx.data.services package, see Web service classes (Flash Professional only).

You can create a new Log object to record activity related to a WebService object. To execute code when messages are sent to a Log object, use the Log.onLog() callback function. There is no log file; the logging mechanism is whatever you have used in the onLog() callback function, such as sending the log messages to a trace() statement.

The constructor for this class creates a Log object that can be passed as an optional parameter to the WebService constructor (see WebService class (Flash Professional only)).

Method summary for the Log class

The following table lists methods of the PendingCall class.

Method

Description

Log.getDateString()

Returns the current date and time as a string in the following format: mm/dd hh:mm:ss used by Log messages.

Log.logInfo()

Generates a Log.onLog event with a designated log level and a designated message.

Log.logDebug()

Generates a Log.onLog event with a log level of Log.DEBUG and a designated message.

Property summary for the Log object

The following table lists properties of the PendingCall class.

Property

Description

Log.level

The category of information that you want to record in the log.

Log.name

A string name identifying the Log object; included in every Log.onLog event message.

Callback summary for the Log object

The following table lists the callback of the Log object.

Callback

Description

Log.onLog()

Called by Flash Player when a log message is sent to a log file.


Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00004237.html