Patterson Consulting, Inc
  • Blog
  • |
  • About
  • |
  • Labs
  • |
  • Published Work
  • |
  • Recent Projects
  • |
  • Presentations
  • |
  • Contact
Patterson Consutling, Inc

    Search


    Category

  • ActionScript
  • Adobe
  • AIR
  • Apollo
  • ColdFusion
  • Conferences
  • ECMAScript
  • Facebook
  • Flash
  • Flex
  • General
  • Javascript/DHTML
  • MN.swf
  • Silverlight
  • Technology
  • XML/XSLT/XML Schema

    Archive

  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 2004


Firebug Target for Flex Logging Framework

by Danny Patterson on April 8th, 2008

We were talking about debugging Flash/Flex applications inside the browser the other day at MN.swf Camp and I mentioned that someone had created something called FlashBug that interfaced with Firebug. I’d never really looked into it much, but I knew it existed at one point. Well, it turns out the link to that is broken. So I did a little digging and found that the interaction with Firebug is super simple. So I decided to create a custom Target that works with the Logging framework in Flex. The following is an example of how to use this target:

1
2
3
4
5
6
7
8
9
10
11
import com.dannypatterson.logging.FirebugTarget;
import mx.logging.ILogger;
import mx.logging.Log;
 
var logger:ILogger = Log.getLogger("myLogger");
var logTarget:FirebugTarget = new FirebugTarget();
logTarget.addLogger(logger);
logger.info("info from flex");
logger.error("error from flex");
logger.warn("warn from flex");
logger.debug("debug from flex");

Download the FirebugTarget class here.

5 Comments


5 Responses to 'Firebug Target for Flex Logging Framework'

Subscribe to comments with RSS or TrackBack to 'Firebug Target for Flex Logging Framework'.

  1. Jesse Hartung

    May 6th, 2008 at 9:31 pm

    Danny,

    Just wanted to check out your blog, unfortunatly this stuff is over my head. Well look forward to meeting you tomorrow.

    Jesse


  2. » Flexのtrace出力をFirebugに送る …The ballad of dead pixels…

    July 23rd, 2008 at 11:15 pm

    [...] Pattersonさんの、「FirebugTarget.as」を使ってみた。 [...]


  3. Firebug for Flex | dehash

    October 27th, 2008 at 10:18 am

    [...] April 11th, 2008 | Author: dehash Firebug Target for Flex Logging Framework Tags » Trackback: Trackback-URL | Comments Feed: RSS 2.0Category: [...]


  4. Newman Zone » Blog Archive » Debugging Flash Player with Firebug and Chrome

    March 26th, 2009 at 9:49 am

    [...] Firebug to debug Flash and Flex applications in a browser, consider using Danny Patterson’s FirebugTarget class instead. It hooks into the Flex Logging API, so the debug statements are omitted when you export [...]


  5. Visual Harmonics » Post Topic » ActionScripting Nirvana: mx.logging to the Rescue

    August 22nd, 2009 at 9:05 am

    [...] in-built and a custom log target, simultaneously. Thanks go to Danny Patterson for his ready-made FireBugTarget. I did this because I want absolute flexibility right from the start in terms of how I output my [...]


Leave a Reply


Atom | RSS | © 2008 Patterson Consulting, Inc