Flex 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:

  • Log.BRIEF The log records primary life-cycle event and error notifications. This is the default value. A Log.level property set to Log.BRIEF returns the number 0.
  • Log.VERBOSE The log records all life-cycle event and error notifications. A Log.level property set to Log.VERBOSE returns the number 1.
  • Log.DEBUG The log records metrics and fine-grained events and errors. A Log.level property set to Log.DEBUG returns the number 2.
  • Log.NONE The log records nothing. Can be used to temporarily turn off Log.onLog events. A Log.level property set to Log.NONE returns the number -1.

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'sLog.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); 



转载地址:http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00003095.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值