2010年8月26日 星期四

Location of flashlog.txt

The output of trace statements is logged to flashlog.txt in the debug version of Flash
Following is the location of flash player log file (flashlog.txt) on various operating systems.

  • Windows Vista : C:\Users\{user-name}\AppData\Roaming\Macromedia\Flash Player\Logs
  • Windows XP : C:\Documents and Settings\{user-name}\Application Data\Macromedia\Flash Player\Logs
  • Linux : /home/{user-name}/.macromedia/Flash_Player/Logs/
  • Mac : /Users/{user-name}/Library/Preferences/Macromedia/Flash Player/Logs/

2010年8月10日 星期二

How to use Chrome console


if(!window.console)
console = {};
console.log = console.log || function(){};
console.warn = console.warn || function(){};
console.error = console.error || function(){};
console.info = console.info || function(){};

console.log('--log--');
console.error('--error--');
console.info('--info--');
console.warn('--warn--');