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
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> <pre class="">

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

Sponsored Links

del.icio.us-ed

  • Lorem 2: An all-around better Lorem experience.
  • Web-Based UML Sequence Diagram / MSC Generator
  • On Static Media and Django
  • The Economist style guide
  • git-issues
  • as3growl - Google Code
  • A List Apart: Articles: Setting Type on the Web to a Baseline Grid
  • 24 ways: Compose to a Vertical Rhythm
  • minify - Google Code
  • iPhone / iPod Touch Backup Extractor

Recent Posts

  • Upgrading your app to AIR 1.5
  • Motivate yourself by doing it in public
  • The trouble with Flash and REST
  • And we’re back
  • Slides and example code from <head> ‘08

Tags

Accessibility ActionScript actionscript3 actionscript 3.0 air apple astro book calendar conference designer filereference file upload Flash flex fotb08 framework getters head head08 head2008 headconference html5 http ical internet internet explorer JavaScript jobs junior microsoft opportunities representational state transfer rest ria schedule silverlight singularity08 skin tutorial urlrequest web developer web development Web Standards Yahoo!

Stuff

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