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 information*. 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?

PLAIN TEXT
Actionscript:
  1. import mx.logging.*;
  2. import LuminicBox.Log.LuminicBoxLoggingTarget;
  3.  
  4. Log.addTarget(new LuminicBoxLoggingTarget());
  5.  
  6. 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.

* 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
Comments rss
Comments rss
Trackback
Trackback

« 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.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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

Recent Posts

  • Read and write local files with Flash Player 10
  • The problem with SproutCore
  • Yahoo! London seeks Junior Developers
  • I am Singularity
  • Yahoo! Astra component library 1.1 released

Tags

Accessibility ActionScript actionscript3 actionscript 3.0 air apple astro book conference designer filereference file upload Flash flex framework internet internet explorer JavaScript jobs junior microsoft opportunities ria singularity08 skin tutorial urlrequest web developer web development Web Standards Yahoo!

del.icio.us-ed

Stuff

Singularity?
Flex.org - The Directory for Flex
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox