I haven't researched any native solutions provided by adobe for this
problem.
However, you could easily create a static class (or a singleton) and
have it write to a file yourself.
For example myLog.trace(string);
If you're in AIR that gives you access to the file system and you can
write to a file manually for your logging.
- Sean