Top RIA blogs award

Top RIA blogs

Confessions of an Flash Addict Rotating Header Image

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.

5 Comments on “FireLog + AIR Logger v1.0.0”

  1. #1 funky monkey blog » Blog Archive » TAX Calculator updated to AIR version 1.0
    on May 13th, 2008 at 11:45 pm

    [...] debugger everytime to trace out messages. Needs a little more refinement, then i’ll post it. You can download and install it here. Includes a static Log Class and a Log reader in [...]

  2. #2 Koen.cz » Transitioning from browser to desktop with Flash CS3 and Adobe AIR
    on Aug 5th, 2008 at 5:01 pm

    [...] listeners and set some variables for our sound object. The AirLogger Class you can download here http://www.funky-monkey.nl/blog/2008/05/13/air-logger-v100/ import flash.desktop.*; import flash.events.NativeDragEvent; import AirLogger; We create an [...]

  3. #3 A breath of fresh AIR #3: User Idle time – funky monkey blog
    on Dec 15th, 2008 at 2:05 pm

    [...] my code I trace with FireLog, a simple logger for AIR, and you can find that [...]

  4. #4 Neil
    on Dec 10th, 2009 at 12:52 pm

    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.

  5. #5 Sidney de Koning
    on Jan 18th, 2010 at 6:08 pm

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

    Cheers, Sid

Leave a Comment