Flex日志系统

Flex logging consists of two main components:
**        The target tells the logging framework where to output log messages. Flex includes a tar-

get implementation, TraceTarget, that outputs log messages by using the same inter-
nal mechanism as the trace() function. You can also implement a custom Flex logging
target by extending the Flex AbstractTarget class and providing an implementation
of the abstract logEvent() function.

**        The logger is the component that actually sends the log messages to the target. The logger

provides details about the code sending the message, the level of the message (info,
debug, error, etc.), and the text of the message itself. The logger also contains the set of
targets that receive the messages. Multiple targets can be added to a logger, and each of
these targets can be configured to receive a subset of the logged messages based on which
code is logging them and the level of the message.

Example:
   
// Use 
private var _myLogger:ILogger =
 Log.getLogger("com.game.SBulletDisapear" );
_myLogger .info( "日志测试!!" );
最后提一句  在实际开发中 Firebug 是打印输出的一个不错的选择

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值