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

flex程序打印log日志,trace信息

发布时间:2020-12-15 03:49:04 所属栏目:百科 来源:网络整理
导读:可以打印logger的内容,一个例子 http://www.cnblogs.com/meteoric_cry/archive/2011/10/24/2222590.html 如何配置说明 http://blog.flexexamples.com/2007/08/26/debugging-flex-applications-with-mmcfg-and-flashlogtxt/ 形成日志内容:flash player是调试

可以打印logger的内容,一个例子
http://www.cnblogs.com/meteoric_cry/archive/2011/10/24/2222590.html


如何配置说明
http://blog.flexexamples.com/2007/08/26/debugging-flex-applications-with-mmcfg-and-flashlogtxt/


形成日志内容:flash player是调试版的,10.0的调试不能够形成flashlog.txt文件

?

?

动态查看日志的文件工具BareTail:http://www.baremetalsoft.com/baretail/index.php
BareTail测试工具的优点:http://www.cnblogs.com/greenerycn/archive/2010/07/15/windows_log_viewer_baretail.html


Flex应用程序通过日志信息调试:trace或者logger信息

?

编辑mm.cfg的配置信息:及不同系统将文件放在哪:http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html


mm.cfg参数信息:
ErrorReportingEnable=1
TraceOutputFileEnable=1
PolicyFileLog = 1
MaxWarnings = 100
PolicyFileLogAppend = 1

附注:后三个可以不写,主要是前两个错误信息


Log file location:(flashlog.txt)

http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WSda78ed3a750d6b8f-4867184d1239f9d0558-8000.html


?


Editing the mm.cfg file

http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html


?

?

?

方法二:也蛮好用的

用AIR工具Monster Debugger也可以实时监控trace的信息

不必须是flash player调试的版了

工具的API:

帮助文档:
http://www.monsterdebugger.com/asdoc/

http://www.monsterdebugger.com/documentation

(编辑:李大同)

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

    推荐文章
      热点阅读