Flex trace() 保存路径

http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f-4867184d1239f9d0558-8000.html

 

从 Flash Player 9 开始,trace()方法的写入路径已经被硬编码,无法自己修改。位置如下:

 

Operating System

Log file location

Windows 95/98/ME/2000/XP

C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs

Windows Vista/Windows 7

C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs 

Macintosh OS X

/Users/username/Library/Preferences/Macromedia/Flash Player/Logs/

Linux

/home/username/.macromedia/Flash_Player/Logs/

 

根据资料,之前似乎可以通过修改 mm.cfg 文件参数设置该路径:

 

  • Windows; C:\Documents and Settings\username\mm.cfg
  • OSX; /Library/Application Support/Macromedia/mm.cfg
  • Linux; home/username/mm.cfg
  •  

     

    TraceOutputFileEnable=1

    TraceOutputFileName=c:\logs\flashlogs.txt

     

    经过测试(FP 10),不可用。

     

     

     

    你可能感兴趣的:(Flex)