Dynamic Flash

Confessions of a serial code abuser
  • rss
  • Home
  • MTASC
  • Archives
  • About me
  • Goodies
    • Base64 encoder/decoder class
  • My Bookshelf
  • My Talks

ActionScript 3.0 Logging API + LunimicBox.Log FlashInspector

Friday, 29 September 2006

Throughout almost all of my ActionScript 2.0 development I used the excellent LuminicBox.Log framework (along with the bundled FlashInspector) to debug my Flash applications. With the advent of ActionScript 3.0 / Flex 2 / Flash 9 we now have a logging API but there’s no easy way to view the logged information1. To stop me tearing what little hair I have left out I have created the LuminicBoxLoggingTarget class, which can be used with the FlashInspector to debug your applications.

Before I go on I know all the hip kids these days are using the fabulous XRay tool, but sometimes it’s a little too heavy-weight for the job of simply logging debug messages to a console. Plus I’ve not yet got it to play nicely with an ActionScript 3.0 / Flex 2 application.

So, how do you use this fine class?

import mx.logging.*;
import LuminicBox.Log.LuminicBoxLoggingTarget;
 
Log.addTarget(new LuminicBoxLoggingTarget());
 
Log.getLogger("test").debug("Hello, world");

As with most of my classes, this is released under the MIT license, so feel free to use it wherever.


  1. Unless, that is, you’ve had better luck than me tracking down the mysterious MiniDebug application that’s mentioned in the ActionScript 3.0 Logging API documentation. ↩

Categories
Flash, Flex 2, Open Source

« ActionScript 3.0 Base64 encoder/decoder Flash/flex accessibility and wmode »

2 responses

[...] ActionScript 3.0 Logging API + LunimicBox.Log FlashInspector at Dynamic

ActionScript 3.0 Logging API + LunimicBox.Log FlashInspector « Ramblings | Wednesday, 08 November 2006 | 3:23 pm

[...] ActionScript 3.0 Logging API + LunimicBox.Log FlashInspector at Dynamic Flash Before I go on I know all the hip kids these days are using the fabulous XRay tool, but sometimes it’s a little too heavy-weight for the job of simply logging debug messages to a console. Plus I’ve not yet got it to play nicely with an ActionScript 3.0 / Flex 2 application. [...]

I wasn't able to get this working with my Flex

Mike Britton | Saturday, 23 December 2006 | 7:11 pm

I wasn’t able to get this working with my Flex 2 application. I placed the class in my root, with my components and the main application; I imported it into my MXML as you said, and initialized it, but I keep getting errors and no debugging information is being sent to FlashInspector.

I love FlashInspector and am very close to creating a port of Luminicbox for AS3.

About Dynamic Flash

Steve Webster is a Senior Web Developer for Yahoo! in London, UK.

He is more than a little concerned that he defines himself in terms of his career, and that he talks about himself in the third person.

Find out more

del.icio.us-ed

  • samuel's squawk at master - GitHub
  • Pixelwave - A native 2D iPhone framework, based on the Flash API
  • Pixelwave - A native 2D iPhone framework, based on the Flash API
  • mnot’s Weblog: Are Resource Packages a Good Idea?
  • Download details: IE App Compat VHD
  • ZSync
  • jQuery source viewer
  • Penetration testing tools - Stack Overflow
  • Logrep
  • DOM Window (jquery.DOMWindow.js)

Recent Posts

  • Moving on
  • iPhone / iPod Touch Development Resources
  • Upgrading your app to AIR 1.5
  • Motivate yourself by doing it in public
  • The trouble with Flash and REST
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox