加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex Log.level

发布时间:2020-12-15 04:40:26 所属栏目:百科 来源:网络整理
导读: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 avail

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.VERBOSE?returns the number 1.
  • Log.DEBUG?The log records metrics and fine-grained events and errors. A?Log.DEBUG?returns the number 2.
  • Log.NONE?The log records nothing. Can be used to temporarily turn off?Log.onLog?events. A?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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读