Skip to content
May 13 / Sidney de Koning

FireLog + AIR Logger v1.0.0

Today somebody at the Flashcoders list asked about logging and tracing, so I decided to put my AIR Logger up for download. It’s a very simple tool and a very simple logger. I use it on a daily basis. It eliminates the use of tracing via the built-in Flash CS3 Debugger.

Install the front end with the big button below and download the class file here. Files that are written are saved to the desktop. (so its easier to drag and drop the files in the front end. You can however change this in the class file.)

Place this file either in you global class path or in a project specific class path. You import and set it up it using:

import AirLogger;

AirLogger.init("somefile.txt");
AirLogger.log("write some text here");
AirLogger.newLine();
AirLogger.log("write other text here");

Please upgrade your Flash Player

Please comment any thoughts or ideas so i can make this logger better. Enjoy! :)

NOTE:The logger does not yet trace out objects, working hard on that.

Please consider to buying me a coffee.

5 Comments

Leave a comment
  1. Neil / Dec 10 2009

    I think this is a handy little class and quick to use. I found that the “\n” did not create newlines in my text log file.

    You need to do:
    AirLogger._fileStream.writeUTFBytes(s.toString() + File.lineEnding);

    Also I would add static consts to your class and other methods like warn, debug etc that would output those constants before and message as is found in other debuggers out there.

    Good start though thanks for sharing.

  2. Sidney de Koning / Jan 18 2010

    Thanks Neil!
    Good to hear you are using it :)

    Cheers, Sid

Trackbacks and Pingbacks

  1. funky monkey blog » Blog Archive » TAX Calculator updated to AIR version 1.0
  2. Koen.cz » Transitioning from browser to desktop with Flash CS3 and Adobe AIR
  3. A breath of fresh AIR #3: User Idle time – funky monkey blog

Leave a comment