When you’re developing an AIR application it’s useful to be able to quickly save information to a file. Especially when it comes to things like tracking the memory usage of an application over a period of time.
This doesn’t require anything fancy. Here’s an example of a simple log() method that either writes or appends to a file called “Output.log” on the desktop:
It’s easy to modify an example like this to allow for different file names and paths. It’s also easy to append timestamps or other identifying information.
In short, quick and simple. 🙂