Log.level

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myLevel_Number = myWebSrvcLog.level

Description

Property; indicates the category of information that you want to record in the log. Four log levels are available:

Although you can set this property directly, usually the Log.level property is set as a parameter when you create a new Log object. See Log class.)

Example

The following example creates a new Log object with a Log.level property of Log.DEBUG. The current Log.level property is traced. Then the Log object's Log.level property is set to 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); 

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/00003705.html