Log.level - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Description
Function; generates a log message containing
and the message type indicator of
.
msg
[debug]
This method provides a way to create your own log events with
in the log message,
[debug]
which will be viewable only with a log level setting of
.
Log.DEBUG
The following string is an examples of a debug level log message generated by
:
Log.logDebug()
12/18 23:20:17 [DEBUG] myLog: My log message
Example
The following example creates a new Log object. An
event with a message indicating
onLog
the start of a new log is generated by calling
.
Log.logDebug()
import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log(Log.DEBUG, "myLog");
// Handles incoming log messages.
myWebSrvcLog.onLog = function(message : String) : Void
{
trace(message);
}
// Generates a log message with a log level of Log.DEBUG.
myWebSrvcLog.logDebug("New Log Started");
// Passes the Log object to the web service.
myWebService = new WebService(wsdlURI, myWebSrvcLog);

Log.level

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myLevel_Number = myWebSrvcLog.level
1420
Web service classes (Flash Professional only)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents