Description
Property; indicates the category of information that you want to record in the log. Four log
levels are available:
The log records primary life-cycle event and error notifications. This is the
Log.BRIEF
default value. A
Log.level
The log records all life-cycle event and error notifications. A
Log.VERBOSE
property set to
Log.VERBOSE
The log records metrics and fine-grained events and errors. A
Log.DEBUG
property set to
Log.DEBUG
The log records nothing. Can be used to temporarily turn off
Log.NONE
events. A
Log.level
Although you can set this property directly, usually the
parameter when you create a new Log object. See
on page
1414.)
Example
The following example creates a new Log object with a
The current
Log.level
.
Log.VERBOSE
import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log(Log.DEBUG, "myLog");
trace("myWebSrvcLog.level: "+ myWebSrvcLog.level);
// Now change the Log object's level.
myWebSrvcLog.level = Log.VERBOSE;
trace("myWebSrvcLog.level: "+ myWebSrvcLog.level);
Log.name
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myWebServiceName = myWebSrvcLog.name
property set to
returns the number 1.
returns the number 2.
property set to
Log.NONE
property is traced. Then the Log object's
returns the number 0.
Log.BRIEF
returns the number -1.
property is set as a
Log.level
"Log class (Flash Professional only)"
Log.level
Log.level
Log.level
Log.level
Log.onLog
property of
Log.DEBUG
property is set to
Log.name
.
1421
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers