-1

Is there a way to log debug messages with Actionscript 3 like log4j? i want to log user interactions in a Flash app(all the events and the user inputs).

iceman
  • 4,211
  • 13
  • 65
  • 92
  • @Gunslinger47:i need to use Clear Toolkit in my scripts to checkout..integrating it is still a problem..I'll give back a feedback – iceman Aug 18 '10 at 05:39
  • Here is their help document, in case you haven't found it yet: [Log4Fx.pdf](http://sourceforge.net/projects/cleartoolkit/files/Clear%20Toolkit%20Docs/General%20Docs/Log4Fx.pdf/download) – Gunslinger47 Aug 18 '10 at 06:21
  • The Clear Toolkit contains log4fx. Reportedly it's a complete implemetation of the log4* specs. Edit:
    Just found this. Looks like a easier to use logging system than log4fx. - http://www.as3commons.org/as3-commons-logging/asdoc/index.html
    – Gunslinger47 Aug 06 '10 at 01:23
  • Can't you just have the flash program write the user interactions to a notepad file? I know there's a way to do that but I don't have the code handy. Maybe do some research to find the actual code. The flash API pages tend to be somewhat helpful. To log the events just have a line in the function triggered by the event to write whatever you want, and for input put a line that writes whatever you want in the function that grabs the user input. – Jyreeil Mar 11 '20 at 01:05

1 Answers1

0

With FlashPlayer 10.1 comes the global error handler. You could use this by manually sending the result to your server.

Read more about FlashPlayer 10.1 Global error handling.

There is nothing built-in as far as I know.

Adam Harte
  • 10,369
  • 7
  • 52
  • 85