Packagecom.bourre.utils
Classpublic class FirebugLayout
ImplementsLogListener

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The FirebugLayout class provides a convenient way to output messages through Firebug console.


Example
Add FirebugLayout as Log listener
  
  //Add Firebug for all channels
  Logger.getInstance().addLogListener( FirebugLayout.getInstance() );
  
  //Add Firebug for a dedicated channel
  Logger.getInstance().addLogListener( FirebugLayout.getInstance(), PixlibDebug.CHANNEL );
  

Output message
  
  //Simple ouput
  Logger.DEBUG( "My message" );
  
  //Channel target
  Logger.WARN( "My messsage", PixlibDebug.CHANNEL );
  
  //Channel use
  PixlibDebug.ERROR( "My error" );
  

See also

Firebug extension for Firefox
com.bourre.log.Logger
com.bourre.log.LogListener
com.bourre.log.LogLevel


Public Methods
 MethodDefined by
  
closeGroup():void
Closes the most recently opened block created by a call to openGroup() method.
FirebugLayout
  
[static] Retreives FirebugLayout unique instance.
FirebugLayout
  
onLog(event:LogEvent):void
Triggered when a log message is sent to the Logger and the Firebug is registered as Log listener.
FirebugLayout
  
openGroup(caption:String):void
Writes the passed-in caption message to the console and opens a nested block to indent all future messages sent to the console.
FirebugLayout
Method detail
closeGroup()method
public function closeGroup():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Closes the most recently opened block created by a call to openGroup() method.

getInstance()method 
public static function getInstance():FirebugLayout

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Retreives FirebugLayout unique instance.

Returns
FirebugLayout
onLog()method 
public function onLog(event:LogEvent):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Triggered when a log message is sent to the Logger and the Firebug is registered as Log listener.

Parameters
event:LogEventLogEvent event containing information about the message to log.
openGroup()method 
public function openGroup(caption:String):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Writes the passed-in caption message to the console and opens a nested block to indent all future messages sent to the console.

Parameters
caption:String