My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SetUp  
How to set up and configure AILogger the old way (1.2.2 and below)
Updated Nov 6, 2009 by oyvind.n...@gmail.com

The simple way

From the repository you can download "Example.as" to get you started quickly. Here's the process outlined.

Imports

For the simplest of cases you only need to import the logger itself. For event based logging you will also need to import the special event class.

import no.allegro.framework.utils.AILogger;
import no.allegro.framework.events.AILoggerEvent;

Setup

Create an instance, add it to the display list and start logging.

var l:AILogger = new AILogger();
addChild(l);

Logging

Call the public log method.

l.log("My Fisher Price log message");

Displaying the logger

You can pull up the logger in three ways; Pressing SHIFT + Enter, right clicking the application and clicking "Open AILogger" or with the public method toggle().

l.toggle();

Sign in to add a comment
Powered by Google Project Hosting