AIRLogger – An Adobe AIR Debugging Utility
I've been working in AIR quite a bit lately and have had a need to log certain things to be able to tell exactly what's going in in my application. I thought I'd write a logging class and share it with everyone.
AIRLogger is a quick way to create a log file for debugging an Adobe AIR AJAX application.
All you have to do is include the AIRLogger.js file in your application's window. From there you have access to log anything you want using the command:
log.write("text or variables to be logged");
If the file doesn't already exist, one will be created for you on your desktop called "application.log". Both the location and the file name can be easily changed in the js file. Possible locations could be "desktopDirectory" (default), "applicationDirectory", "applicationStorageDirectory", or a string to the path of your choice. I put it on my desktop for easy access because I'm usually just going to delete the file after I'm done looking at it anyway.


